[llvm] r179225 - Mips specific inline asm memory operand modifier test case

Jack Carter jack.carter at imgtec.com
Wed Apr 10 15:02:32 PDT 2013


Author: jacksprat
Date: Wed Apr 10 17:02:32 2013
New Revision: 179225

URL: http://llvm.org/viewvc/llvm-project?rev=179225&view=rev
Log:
Mips specific inline asm memory operand modifier test case

These changes are based on commit responses for r179135.


Modified:
    llvm/trunk/test/CodeGen/Mips/inlineasmmemop.ll

Modified: llvm/trunk/test/CodeGen/Mips/inlineasmmemop.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Mips/inlineasmmemop.ll?rev=179225&r1=179224&r2=179225&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Mips/inlineasmmemop.ll (original)
+++ llvm/trunk/test/CodeGen/Mips/inlineasmmemop.ll Wed Apr 10 17:02:32 2013
@@ -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 }
 





More information about the llvm-commits mailing list