Convert all tests using TCL-style quoting to use shell-style quoting.
This was done through the aid of a terrible Perl creation. I will not
paste any of the horrors here. Suffice to say, it require multiple
staged rounds of replacements, state carried between, and a few
nested-construct-parsing hacks that I'm not proud of. It happens, by
luck, to be able to deal with all the TCL-quoting patterns in evidence
in the LLVM test suite.
If anyone is maintaining large out-of-tree test trees, feel free to poke
me and I'll send you the steps I used to convert things, as well as
answer any painful questions etc. IRC works best for this type of thing
I find.
Once converted, switch the LLVM lit config to use ShTests the same as
Clang. In addition to being able to delete large amounts of Python code
from 'lit', this will also simplify the entire test suite and some of
lit's architecture.
Finally, the test suite runs 33% faster on Linux now. ;]
For my 16-hardware-thread (2x 4-core xeon e5520): 36s -> 24s
llvm-svn: 159525
2012-07-02 14:47:22 +02:00
|
|
|
; RUN: llc < %s -march=x86-64 -mattr=+sse3,+sse41 -mcpu=penryn -stats |& grep "8 machine-licm"
|
2012-04-27 09:11:58 +02:00
|
|
|
; RUN: llc < %s -march=x86-64 -mattr=+sse3,+sse41 -mcpu=penryn | FileCheck %s
|
2009-02-27 01:02:22 +01:00
|
|
|
; rdar://6627786
|
2010-03-26 01:07:25 +01:00
|
|
|
; rdar://7792037
|
2009-02-27 01:02:22 +01:00
|
|
|
|
|
|
|
target triple = "x86_64-apple-darwin10.0"
|
|
|
|
%struct.Key = type { i64 }
|
|
|
|
%struct.__Rec = type opaque
|
|
|
|
%struct.__vv = type { }
|
|
|
|
|
2010-01-11 18:23:56 +01:00
|
|
|
define %struct.__vv* @t(%struct.Key* %desc, i64 %p) nounwind ssp {
|
2009-02-27 01:02:22 +01:00
|
|
|
entry:
|
|
|
|
br label %bb4
|
|
|
|
|
|
|
|
bb4: ; preds = %bb.i, %bb26, %bb4, %entry
|
2010-03-26 01:07:25 +01:00
|
|
|
; CHECK: %bb4
|
|
|
|
; CHECK: xorb
|
|
|
|
; CHECK: callq
|
|
|
|
; CHECK: movq
|
|
|
|
; CHECK: xorl
|
|
|
|
; CHECK: xorb
|
|
|
|
|
2009-02-27 01:02:22 +01:00
|
|
|
%0 = call i32 (...)* @xxGetOffsetForCode(i32 undef) nounwind ; <i32> [#uses=0]
|
2010-01-11 18:23:56 +01:00
|
|
|
%ins = or i64 %p, 2097152 ; <i64> [#uses=1]
|
2009-02-27 01:02:22 +01:00
|
|
|
%1 = call i32 (...)* @xxCalculateMidType(%struct.Key* %desc, i32 0) nounwind ; <i32> [#uses=1]
|
|
|
|
%cond = icmp eq i32 %1, 1 ; <i1> [#uses=1]
|
|
|
|
br i1 %cond, label %bb26, label %bb4
|
|
|
|
|
|
|
|
bb26: ; preds = %bb4
|
|
|
|
%2 = and i64 %ins, 15728640 ; <i64> [#uses=1]
|
|
|
|
%cond.i = icmp eq i64 %2, 1048576 ; <i1> [#uses=1]
|
|
|
|
br i1 %cond.i, label %bb.i, label %bb4
|
|
|
|
|
|
|
|
bb.i: ; preds = %bb26
|
|
|
|
%3 = load i32* null, align 4 ; <i32> [#uses=1]
|
|
|
|
%4 = uitofp i32 %3 to float ; <float> [#uses=1]
|
|
|
|
%.sum13.i = add i64 0, 4 ; <i64> [#uses=1]
|
|
|
|
%5 = getelementptr i8* null, i64 %.sum13.i ; <i8*> [#uses=1]
|
|
|
|
%6 = bitcast i8* %5 to i32* ; <i32*> [#uses=1]
|
|
|
|
%7 = load i32* %6, align 4 ; <i32> [#uses=1]
|
|
|
|
%8 = uitofp i32 %7 to float ; <float> [#uses=1]
|
|
|
|
%.sum.i = add i64 0, 8 ; <i64> [#uses=1]
|
|
|
|
%9 = getelementptr i8* null, i64 %.sum.i ; <i8*> [#uses=1]
|
|
|
|
%10 = bitcast i8* %9 to i32* ; <i32*> [#uses=1]
|
|
|
|
%11 = load i32* %10, align 4 ; <i32> [#uses=1]
|
|
|
|
%12 = uitofp i32 %11 to float ; <float> [#uses=1]
|
|
|
|
%13 = insertelement <4 x float> undef, float %4, i32 0 ; <<4 x float>> [#uses=1]
|
|
|
|
%14 = insertelement <4 x float> %13, float %8, i32 1 ; <<4 x float>> [#uses=1]
|
|
|
|
%15 = insertelement <4 x float> %14, float %12, i32 2 ; <<4 x float>> [#uses=1]
|
|
|
|
store <4 x float> %15, <4 x float>* null, align 16
|
|
|
|
br label %bb4
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32 @xxGetOffsetForCode(...)
|
|
|
|
|
|
|
|
declare i32 @xxCalculateMidType(...)
|