1 /* { dg-do compile } */ 2 /* { dg-options "-O2" } */ 3 4 void dummy(short * b)5dummy (short* b) 6 { 7 /* { dg-final { scan-assembler "movi\tv\[0-9\]+\.4h, 0x4, lsl 8" } } */ 8 /* { dg-final { scan-assembler-not "movi\tv\[0-9\]+\.4h, 0x400" } } */ 9 /* { dg-final { scan-assembler-not "movi\tv\[0-9\]+\.4h, 1024" } } */ 10 register short x asm ("h8") = 1024; 11 asm volatile ("" : : "w" (x)); 12 *b = x; 13 } 14