llvm/llvm/test/CodeGen/X86/inline-asm-duplicated-constraint.ll

; RUN: llc < %s -no-integrated-as -mtriple=x86_64-linux-gnu | FileCheck %s

; CHECK-LABEL: test1:
; CHECK: movl	(%rdi), %eax
; CHECK: nop
; CHECK: movl	%eax, (%rdi)
; CHECK: ret
define void @test1(ptr %l) {
  %load = load i32, ptr %l
  call void asm "nop", "=*rmrm,0m0m,~{dirflag},~{fpsr},~{flags}"(ptr elementtype(i32) %l, i32 %load)
  ret void
}