[PATCH] D21931: Specify mtriple for the frame-order.ll test.

Dehao Chen via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 1 09:59:51 PDT 2016


danielcdh created this revision.
danielcdh added a reviewer: majnemer.
danielcdh added a subscriber: llvm-commits.

original test may have different bahavior on different bot, specifically it broke llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast

http://reviews.llvm.org/D21931

Files:
  test/CodeGen/X86/frame-order.ll

Index: test/CodeGen/X86/frame-order.ll
===================================================================
--- test/CodeGen/X86/frame-order.ll
+++ test/CodeGen/X86/frame-order.ll
@@ -1,5 +1,5 @@
-; RUN: llc -march=x86 -disable-debug-info-print < %s | FileCheck %s
-; RUN: opt -strip -S < %s | llc -march=x86 -disable-debug-info-print | FileCheck %s
+; RUN: llc -mtriple=x86_64-linux-gnueabi -disable-debug-info-print < %s | FileCheck %s
+; RUN: opt -strip -S < %s | llc -mtriple=x86_64-linux-gnueabi -disable-debug-info-print | FileCheck %s
 
 ; This test checks if the code is generated correctly with and without debug info.
 
@@ -41,7 +41,7 @@
   %tobool = icmp ne i32 %0, 0, !dbg !26
   br i1 %tobool, label %if.then, label %if.else, !dbg !27
 
-;CHECK: movl [[REG:.*]], 24(%esp)
+;CHECK: movl [[REG:.*]], 20(%rsp)
 ;CHECK: je [[LABEL:.*]]
 
 if.then:                                          ; preds = %entry
@@ -52,7 +52,7 @@
   call void @capture(i32* %a), !dbg !31
   br label %if.end, !dbg !32
 
-;CHECK: movl    $3, 16(%esp)
+;CHECK: movl    $3, 12(%rsp)
 
 if.else:                                          ; preds = %entry
   call void @llvm.dbg.declare(metadata i32* %b, metadata !33, metadata !16), !dbg !34
@@ -63,7 +63,7 @@
   br label %if.end
 
 ;CHECK: [[LABEL]]:
-;CHECK: movl    $3, 20(%esp)
+;CHECK: movl    $3, 16(%rsp)
 
 if.end:                                           ; preds = %if.else, %if.then
   ret void, !dbg !37


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21931.62505.patch
Type: text/x-patch
Size: 1446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160701/7d868e0e/attachment.bin>


More information about the llvm-commits mailing list