summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/inline-asm-duplicated-constraint.ll
blob: 0228f45ce96c1b5118a0945888b3a36c32cbb11f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; 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(i32* %l) {
  %load = load i32, i32* %l
  call void asm "nop", "=*rmrm,0m0m,~{dirflag},~{fpsr},~{flags}"(i32* %l, i32 %load)
  ret void
}
OpenPOWER on IntegriCloud