[llvm] r261332 - [X86] Change fixup-bw-inst.ll to test output with this optimization on and off.

Kevin B. Smith via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 19 08:20:48 PST 2016


Author: kbsmith1
Date: Fri Feb 19 10:20:48 2016
New Revision: 261332

URL: http://llvm.org/viewvc/llvm-project?rev=261332&view=rev
Log:
[X86] Change fixup-bw-inst.ll to test output with this optimization on and off.
Differential Revision: http://reviews.llvm.org/D17415

Modified:
    llvm/trunk/test/CodeGen/X86/fixup-bw-inst.ll

Modified: llvm/trunk/test/CodeGen/X86/fixup-bw-inst.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fixup-bw-inst.ll?rev=261332&r1=261331&r2=261332&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fixup-bw-inst.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fixup-bw-inst.ll Fri Feb 19 10:20:48 2016
@@ -1,4 +1,7 @@
-; RUN: llc -fixup-byte-word-insts -march=x86-64 < %s | FileCheck %s
+; RUN: llc -fixup-byte-word-insts=1 -march=x86-64 < %s | \
+; RUN: FileCheck -check-prefix CHECK -check-prefix BWON %s
+; RUN: llc -fixup-byte-word-insts=0 -march=x86-64 < %s | \
+; RUN: FileCheck -check-prefix CHECK -check-prefix BWOFF %s
 
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
 target triple = "x86_64-apple-macosx10.8.0"
@@ -12,7 +15,8 @@ target triple = "x86_64-apple-macosx10.8
 ; not being accurate enough.
 ; CHECK-LABEL: foo1
 ; load:
-; CHECK: movzbl
+; BWON:  movzbl
+; BWOFF: movb
 ; store:
 ; CHECK: movb
 ; load:
@@ -59,7 +63,8 @@ a4:
 ; not being accurate enough.
 ; CHECK-LABEL: foo2
 ; load:
-; CHECK: movzwl
+; BWON:  movzwl
+; BWOFF: movw
 ; store:
 ; CHECK: movw
 ; load:
@@ -113,7 +118,8 @@ define void @foo3(i8 *%dst, i8 *%src) {
 ; movw and movzwl are the same size, we should always choose to use
 ; movzwl instead.
 ; CHECK-LABEL: foo4:
-; CHECK: movzwl
+; BWON:  movzwl
+; BWOFF: movw
 ; CHECK: movw
 define void @foo4(i16 *%dst, i16 *%src) {
   %t0 = load i16, i16 *%src, align 2




More information about the llvm-commits mailing list