summaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips
diff options
context:
space:
mode:
authorJack Carter <jack.carter@imgtec.com>2013-04-10 22:02:32 +0000
committerJack Carter <jack.carter@imgtec.com>2013-04-10 22:02:32 +0000
commitbcf8b873e780df766bf21ab43165b5eacbac6840 (patch)
tree05f7a31cd982a8729ddc941a782746c27538ca7f /test/CodeGen/Mips
parent5fc7c98d54303e05d1fcfb8ff02a4b2fdc4021ff (diff)
downloadllvm-bcf8b873e780df766bf21ab43165b5eacbac6840.tar.gz
llvm-bcf8b873e780df766bf21ab43165b5eacbac6840.tar.bz2
llvm-bcf8b873e780df766bf21ab43165b5eacbac6840.tar.xz
Mips specific inline asm memory operand modifier test case
These changes are based on commit responses for r179135. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips')
-rw-r--r--test/CodeGen/Mips/inlineasmmemop.ll17
1 files changed, 12 insertions, 5 deletions
diff --git a/test/CodeGen/Mips/inlineasmmemop.ll b/test/CodeGen/Mips/inlineasmmemop.ll
index dbd62a165d..a87cab3eb4 100644
--- a/test/CodeGen/Mips/inlineasmmemop.ll
+++ b/test/CodeGen/Mips/inlineasmmemop.ll
@@ -22,19 +22,26 @@ entry:
ret i32 %0
}
-; "D": Second word of double word. This works for any memory element.
+; "D": Second word of double word. This works for any memory element
+; double or single.
; CHECK: #APP
; CHECK-NEXT: lw ${{[0-9]+}},4(${{[0-9]+}});
; CHECK-NEXT: #NO_APP
+; No "D": First word of double word. This works for any memory element
+; double or single.
+; CHECK: #APP
+; CHECK-NEXT: lw ${{[0-9]+}},0(${{[0-9]+}});
+; CHECK-NEXT: #NO_APP
+
@b = common global [20 x i32] zeroinitializer, align 4
-define void @main() #0 {
+define void @main() {
entry:
- tail call void asm sideeffect " lw $0,${1:D};", "r,*m,~{$11}"(i32 undef, i32* getelementptr inbounds ([20 x i32]* @b, i32 0, i32 3)) #1
+ tail call void asm sideeffect " lw $0,${1:D};", "r,*m,~{$11}"(i32 undef, i32* getelementptr inbounds ([20 x i32]* @b, i32 0, i32 3))
+ tail call void asm sideeffect " lw $0,${1};", "r,*m,~{$11}"(i32 undef, i32* getelementptr inbounds ([20 x i32]* @b, i32 0, i32 3))
ret void
}
-attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #1 = { nounwind }
+attributes #0 = { nounwind }