xref: /llvm-project/llvm/test/CodeGen/X86/asm-modifier-error.ll (revision 7e604485e18d40be6ce6310e4a3e583ca0b7df47)
1; RUN: not llc < %s -mtriple=x86_64-unknown-unknown 2>&1 | FileCheck %s
2
3; CHECK: error: invalid operand in inline asm: 'mov %ah, ${0:h}'
4define void @test1() {
5entry:
6  %0 = tail call i8 asm sideeffect "mov %ah, ${0:h}", "=r,~{eax},~{ebx},~{ecx},~{edx},~{dirflag},~{fpsr},~{flags}"()
7  ret void
8}
9
10;CHECK: error: invalid operand in inline asm: 'vmovd ${1:k}, $0'
11define i32 @foo() {
12entry:
13  %0 = tail call i32 asm sideeffect "vmovd ${1:k}, $0", "=r,x,~{dirflag},~{fpsr},~{flags}"(<2 x i64> <i64 240518168632, i64 240518168632>)
14  ret i32 %0
15}
16