[llvm] r224517 - [mips] Clean up the CodeGen/Mips/inlineasmmemop.ll test. NFC.

Toma Tabacu toma.tabacu at imgtec.com
Thu Dec 18 05:03:52 PST 2014


Author: tomatabacu
Date: Thu Dec 18 07:03:51 2014
New Revision: 224517

URL: http://llvm.org/viewvc/llvm-project?rev=224517&view=rev
Log:
[mips] Clean up the CodeGen/Mips/inlineasmmemop.ll test. NFC.

Summary:
Improve comments and remove a redundant attribute list.
There are no functional changes (to the CHECK's or to the code).

Part of these changes were suggested in http://reviews.llvm.org/D6637.

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D6705

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=224517&r1=224516&r2=224517&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Mips/inlineasmmemop.ll (original)
+++ llvm/trunk/test/CodeGen/Mips/inlineasmmemop.ll Thu Dec 18 07:03:51 2014
@@ -24,42 +24,25 @@ entry:
 }
 
 ; CHECK-LABEL: main:
-; "D": Second word of double word. This works for any memory element
+; "D": Second word of a double word. This works for any memory element
 ; double or single.
 ; CHECK: #APP
 ; CHECK: lw ${{[0-9]+}},4(${{[0-9]+}});
 ; CHECK: #NO_APP
 
-; No "D": First word of double word. This works for any memory element 
+; No "D": First word of a double word. This works for any memory element
 ; double or single.
 ; CHECK: #APP
 ; CHECK: lw ${{[0-9]+}},0(${{[0-9]+}});
 ; CHECK: #NO_APP
 
-;int b[8] = {0,1,2,3,4,5,6,7};
-;int main()
-;{
-;  int i;
-; 
-;  // The first word. Notice, no 'D'
-;  { asm (
-;    "lw    %0,%1;\n"
-;    : "=r" (i) : "m" (*(b+4)));}
-; 
-;  // The second word
-;  { asm (
-;    "lw    %0,%D1;\n"
-;    : "=r" (i) "m" (*(b+4)));}
-;}
-
 @b = common global [20 x i32] zeroinitializer, align 4
 
 define void @main() {
 entry:
+; Second word:
   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))
+; First word. Notice, no 'D':
   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 }
-





More information about the llvm-commits mailing list