xref: /llvm-project/llvm/test/CodeGen/X86/inline-asm-duplicated-constraint.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc < %s -no-integrated-as -mtriple=x86_64-linux-gnu | FileCheck %s
2
3; CHECK-LABEL: test1:
4; CHECK: movl	(%rdi), %eax
5; CHECK: nop
6; CHECK: movl	%eax, (%rdi)
7; CHECK: ret
8define void @test1(ptr %l) {
9  %load = load i32, ptr %l
10  call void asm "nop", "=*rmrm,0m0m,~{dirflag},~{fpsr},~{flags}"(ptr elementtype(i32) %l, i32 %load)
11  ret void
12}
13