blob: 706a90efe3a82e4d4f86e2d0afd2fd33d0b7c085 [file] [log] [blame]
Lang Hamesbe3d9712013-03-09 22:56:09 +00001; RUN: llc -mtriple=armv7 < %s
2; PR15053
3
4declare i32 @llvm.arm.strexd(i32, i32, i8*) nounwind
5declare { i32, i32 } @llvm.arm.ldrexd(i8*) nounwind readonly
6
7define void @foo() {
8entry:
9 %0 = tail call { i32, i32 } @llvm.arm.ldrexd(i8* undef) nounwind
10 %1 = extractvalue { i32, i32 } %0, 0
11 %2 = tail call i32 @llvm.arm.strexd(i32 %1, i32 undef, i8* undef) nounwind
12 ret void
13}