llvm-project/llvm/test/CodeGen/Generic/2008-02-20-MatchingMem.ll
Nikita Popov f430c1eb64 [Tests] Add elementtype attribute to indirect inline asm operands (NFC)
This updates LLVM tests for D116531 by adding elementtype attributes
to operands that correspond to indirect asm constraints.
2022-01-06 14:23:51 +01:00

10 lines
300 B
LLVM

; RUN: llc -no-integrated-as < %s
; PR1133
define void @test(i32* %X) nounwind {
entry:
%tmp1 = getelementptr i32, i32* %X, i32 10 ; <i32*> [#uses=2]
tail call void asm sideeffect " $0 $1 ", "=*im,*im,~{memory}"( i32* elementtype( i32) %tmp1, i32* elementtype(i32) %tmp1 ) nounwind
ret void
}