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