[X86] Don't pass a scale value of 0 to scatter/gather intrinsics. This causes the...
[oota-llvm.git] / test / CodeGen / X86 / 2007-10-12-SpillerUnfold2.ll
index a3872ad47e981df8ec52686bee341a2738b4e044..4b1c1d77f7a09acd711d421fbcb5e73b4b535a7e 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llc < %s -march=x86 | grep sarl | not grep esp
+; RUN: llc < %s -march=x86 -mcpu=corei7 | grep sarl | not grep esp
 
-define i16 @t(i16* %qmatrix, i16* %dct, i16* %acBaseTable, i16* %acExtTable, i16 signext  %acBaseRes, i16 signext  %acMaskRes, i16 signext  %acExtRes, i32* %bitptr, i32* %source, i32 %markerPrefix, i8** %byteptr, i32 %scale, i32 %round, i32 %bits) signext  {
+define signext   i16 @t(i16* %qmatrix, i16* %dct, i16* %acBaseTable, i16* %acExtTable, i16 signext  %acBaseRes, i16 signext  %acMaskRes, i16 signext  %acExtRes, i32* %bitptr, i32* %source, i32 %markerPrefix, i8** %byteptr, i32 %scale, i32 %round, i32 %bits) {
 entry:
        br label %cond_next127
 
@@ -22,13 +22,13 @@ cond_next245:               ; preds = %cond_next127
        br i1 false, label %cond_true267, label %cond_next391
 
 cond_true267:          ; preds = %cond_next245
-       %tmp269 = load i8** %byteptr, align 4           ; <i8*> [#uses=3]
-       %tmp270 = load i8* %tmp269, align 1             ; <i8> [#uses=1]
+       %tmp269 = load i8*, i8** %byteptr, align 4              ; <i8*> [#uses=3]
+       %tmp270 = load i8, i8* %tmp269, align 1         ; <i8> [#uses=1]
        %tmp270271 = zext i8 %tmp270 to i32             ; <i32> [#uses=1]
-       %tmp272 = getelementptr i8* %tmp269, i32 1              ; <i8*> [#uses=2]
+       %tmp272 = getelementptr i8, i8* %tmp269, i32 1          ; <i8*> [#uses=2]
        store i8* %tmp272, i8** %byteptr, align 4
-       %tmp276 = load i8* %tmp272, align 1             ; <i8> [#uses=1]
-       %tmp278 = getelementptr i8* %tmp269, i32 2              ; <i8*> [#uses=1]
+       %tmp276 = load i8, i8* %tmp272, align 1         ; <i8> [#uses=1]
+       %tmp278 = getelementptr i8, i8* %tmp269, i32 2          ; <i8*> [#uses=1]
        store i8* %tmp278, i8** %byteptr, align 4
        %tmp286 = icmp eq i32 %tmp270271, %markerPrefix         ; <i1> [#uses=1]
        %cond = icmp eq i8 %tmp276, 0           ; <i1> [#uses=1]
@@ -42,7 +42,7 @@ cond_next327:         ; preds = %cond_true267
        br i1 false, label %cond_true343, label %cond_next391
 
 cond_true343:          ; preds = %cond_next327
-       %tmp345 = load i8** %byteptr, align 4           ; <i8*> [#uses=1]
+       %tmp345 = load i8*, i8** %byteptr, align 4              ; <i8*> [#uses=1]
        store i8* null, i8** %byteptr, align 4
        store i8* %tmp345, i8** %byteptr, align 4
        br label %cond_next391