diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-03-25 04:26:08 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-03-25 04:26:08 +0000 |
commit | 6f729d601c8a6a9710356aadb42dc8d0efa95bf2 (patch) | |
tree | e662b3ee5539d7594ab49eda3eae140424ce499d /test/CodeGen/X86/store_op_load_fold2.ll | |
parent | a2fb634defce316ec972aa6f3ca3a941b4656f5e (diff) | |
download | llvm-6f729d601c8a6a9710356aadb42dc8d0efa95bf2.tar.gz llvm-6f729d601c8a6a9710356aadb42dc8d0efa95bf2.tar.bz2 llvm-6f729d601c8a6a9710356aadb42dc8d0efa95bf2.tar.xz |
Byebye llvm-upgrade!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/store_op_load_fold2.ll')
-rw-r--r-- | test/CodeGen/X86/store_op_load_fold2.ll | 67 |
1 files changed, 29 insertions, 38 deletions
diff --git a/test/CodeGen/X86/store_op_load_fold2.ll b/test/CodeGen/X86/store_op_load_fold2.ll index a7d719ee2e..09aaba155d 100644 --- a/test/CodeGen/X86/store_op_load_fold2.ll +++ b/test/CodeGen/X86/store_op_load_fold2.ll @@ -1,43 +1,34 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \ +; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | \ ; RUN: grep {and DWORD PTR} | count 2 -target endian = little -target pointersize = 32 +target datalayout = "e-p:32:32" + %struct.Macroblock = type { i32, i32, i32, i32, i32, [8 x i32], %struct.Macroblock*, %struct.Macroblock*, i32, [2 x [4 x [4 x [2 x i32]]]], [16 x i8], [16 x i8], i32, i64, [4 x i32], [4 x i32], i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, double, i32, i32, i32, i32, i32, i32, i32, i32, i32 } - %struct.Macroblock = type { int, int, int, int, int, [8 x int], %struct.Macroblock*, %struct.Macroblock*, int, [2 x [4 x [4 x [2 x int]]]], [16 x sbyte], [16 x sbyte], int, long, [4 x int], [4 x int], long, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, short, double, int, int, int, int, int, int, int, int, int } - -implementation ; Functions: - -internal fastcc int %dct_chroma(int %uv, int %cr_cbp) { +define internal fastcc i32 @dct_chroma(i32 %uv, i32 %cr_cbp) { entry: - br bool true, label %cond_true2732.preheader, label %cond_true129 - -cond_true129: ; preds = %entry - ret int 0 - -cond_true2732.preheader: ; preds = %bb2611 - %tmp2666 = getelementptr %struct.Macroblock* null, int 0, uint 13 ; <long*> [#uses=2] - %tmp2674 = cast int 0 to ubyte ; <ubyte> [#uses=1] - br bool true, label %cond_true2732.preheader.split.us, label %cond_true2732.preheader.split - -cond_true2732.preheader.split.us: ; preds = %cond_true2732.preheader - br bool true, label %cond_true2732.outer.us.us, label %cond_true2732.outer.us - -cond_true2732.outer.us.us: ; preds = %cond_true2732.preheader.split.us - %tmp2667.us.us = load long* %tmp2666 ; <long> [#uses=1] - %tmp2670.us.us = load long* null ; <long> [#uses=1] - %tmp2675.us.us = shl long %tmp2670.us.us, ubyte %tmp2674 ; <long> [#uses=1] - %tmp2675not.us.us = xor long %tmp2675.us.us, -1 ; <long> [#uses=1] - %tmp2676.us.us = and long %tmp2667.us.us, %tmp2675not.us.us ; <long> [#uses=1] - store long %tmp2676.us.us, long* %tmp2666 - ret int 0 - -cond_true2732.outer.us: ; preds = %cond_true2732.preheader.split.us - ret int 0 - -cond_true2732.preheader.split: ; preds = %cond_true2732.preheader - ret int 0 - -cond_next2752: ; preds = %bb2611 - ret int 0 + br i1 true, label %cond_true2732.preheader, label %cond_true129 +cond_true129: ; preds = %entry + ret i32 0 +cond_true2732.preheader: ; preds = %entry + %tmp2666 = getelementptr %struct.Macroblock* null, i32 0, i32 13 ; <i64*> [#uses=2] + %tmp2674 = trunc i32 0 to i8 ; <i8> [#uses=1] + br i1 true, label %cond_true2732.preheader.split.us, label %cond_true2732.preheader.split +cond_true2732.preheader.split.us: ; preds = %cond_true2732.preheader + br i1 true, label %cond_true2732.outer.us.us, label %cond_true2732.outer.us +cond_true2732.outer.us.us: ; preds = %cond_true2732.preheader.split.us + %tmp2667.us.us = load i64* %tmp2666 ; <i64> [#uses=1] + %tmp2670.us.us = load i64* null ; <i64> [#uses=1] + %shift.upgrd.1 = zext i8 %tmp2674 to i64 ; <i64> [#uses=1] + %tmp2675.us.us = shl i64 %tmp2670.us.us, %shift.upgrd.1 ; <i64> [#uses=1] + %tmp2675not.us.us = xor i64 %tmp2675.us.us, -1 ; <i64> [#uses=1] + %tmp2676.us.us = and i64 %tmp2667.us.us, %tmp2675not.us.us ; <i64> [#uses=1] + store i64 %tmp2676.us.us, i64* %tmp2666 + ret i32 0 +cond_true2732.outer.us: ; preds = %cond_true2732.preheader.split.us + ret i32 0 +cond_true2732.preheader.split: ; preds = %cond_true2732.preheader + ret i32 0 +cond_next2752: ; No predecessors! + ret i32 0 } + |