view test/CodeGen/X86/inline-asm-duplicated-constraint.ll @ 95:afa8332a0e37 LLVM3.8

LLVM 3.8
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Tue, 13 Oct 2015 17:48:58 +0900
parents
children 803732b1fca8
line wrap: on
line source

; RUN: llc < %s -march=x86-64 -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
}