llvm.org GIT mirror llvm / 82d2514
Add missing index versions of instructions to the map. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41776 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 12 years ago
2 changed file(s) with 23 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9393 ImmToIdxMap[PPC::STH] = PPC::STHX; ImmToIdxMap[PPC::STW] = PPC::STWX;
9494 ImmToIdxMap[PPC::STFS] = PPC::STFSX; ImmToIdxMap[PPC::STFD] = PPC::STFDX;
9595 ImmToIdxMap[PPC::ADDI] = PPC::ADD4;
96 ImmToIdxMap[PPC::ADDI8] = PPC::ADD8;
96
97 // 64-bit
98 ImmToIdxMap[PPC::LHA8] = PPC::LHAX8; ImmToIdxMap[PPC::LBZ8] = PPC::LBZX8;
99 ImmToIdxMap[PPC::LHZ8] = PPC::LHZX8; ImmToIdxMap[PPC::LWZ8] = PPC::LWZX8;
100 ImmToIdxMap[PPC::STB8] = PPC::STBX8; ImmToIdxMap[PPC::STH8] = PPC::STHX8;
101 ImmToIdxMap[PPC::STW8] = PPC::STWX8; ImmToIdxMap[PPC::STDU] = PPC::STDUX;
102 ImmToIdxMap[PPC::ADDI8] = PPC::ADD8; ImmToIdxMap[PPC::STD_32] = PPC::STDX_32;
97103 }
98104
99105 void
0 ; RUN: llvm-as < %s | llc -march=ppc64 | grep lwzx
1
2 %struct.__db_region = type { %struct.__mutex_t, [4 x i8], %struct.anon, i32, [1 x i32] }
3 %struct.__mutex_t = type { i32 }
4 %struct.anon = type { i64, i64 }
5
6 define void @foo() {
7 entry:
8 %ttype = alloca i32, align 4 ; [#uses=1]
9 %regs = alloca [1024 x %struct.__db_region], align 16 ; <[1024 x %struct.__db_region]*> [#uses=0]
10 %tmp = load i32* %ttype, align 4 ; [#uses=1]
11 %tmp1 = call i32 (...)* @bork( i32 %tmp ) ; [#uses=0]
12 ret void
13 }
14
15 declare i32 @bork(...)