summaryrefslogtreecommitdiff
path: root/test/CodeGen/x86-64-inline-asm.c
blob: 666d4c08225da5c93e69d67efdb8efd560a50a74 (plain)
1
2
3
4
5
6
7
// REQUIRES: x86-registered-target
// RUN: %clang_cc1 -triple x86_64 %s -S -o /dev/null 2>&1 | FileCheck %s
// RUN: not %clang_cc1 -triple x86_64 %s -S -o /dev/null -Werror 2>&1 | FileCheck %s --check-prefix=CHECK-Werror
void f() {
  asm("movaps %xmm3, (%esi, 2)"); // CHECK: warning: scale factor without index register is ignored
                                  // CHECK-Werror: error: scale factor without index register is ignored
}