
Test updates were performed using: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only the test updates where the test passed without further modification (which is almost all of them, as the backend is largely pointer-type agnostic).
13 lines
348 B
LLVM
13 lines
348 B
LLVM
; 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
|
|
}
|