1 // REQUIRES: x86-registered-target 2 // RUN: %clang_cc1 -triple x86_64 %s -S -o /dev/null -DWARN -verify 3 // RUN: %clang_cc1 -triple x86_64 %s -S -o /dev/null -Werror -verify 4 void f() { 5 asm("movaps %xmm3, (%esi, 2)"); 6 // expected-note@1 {{instantiated into assembly here}} 7 #ifdef WARN 8 // expected-warning@-3 {{scale factor without index register is ignored}} 9 #else 10 // expected-error@-5 {{scale factor without index register is ignored}} 11 #endif 12 } 13