llvm.org GIT mirror llvm / 2fb10f1
Multiclass LdStCop was using pre-UAL syntax LDC<c>L for the L fragment. Changed to the UAL syntax of LDCL<c>, instead. Add a test case for this change which also tests the removal of assert() from printAddrMode2OffsetOperand(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101527 91177308-0d34-0410-b5e6-96231b3b80d8 Johnny Chen 9 years ago
2 changed file(s) with 7 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
27632763
27642764 def L_OFFSET : ACI<(outs),
27652765 (ins nohash_imm:$cop, nohash_imm:$CRd, addrmode2:$addr),
2766 opc, "l\tp$cop, cr$CRd, $addr"> {
2766 !strconcat(opc, "l"), "\tp$cop, cr$CRd, $addr"> {
27672767 let Inst{31-28} = op31_28;
27682768 let Inst{24} = 1; // P = 1
27692769 let Inst{21} = 0; // W = 0
27732773
27742774 def L_PRE : ACI<(outs),
27752775 (ins nohash_imm:$cop, nohash_imm:$CRd, addrmode2:$addr),
2776 opc, "l\tp$cop, cr$CRd, $addr!"> {
2776 !strconcat(opc, "l"), "\tp$cop, cr$CRd, $addr!"> {
27772777 let Inst{31-28} = op31_28;
27782778 let Inst{24} = 1; // P = 1
27792779 let Inst{21} = 1; // W = 1
27832783
27842784 def L_POST : ACI<(outs),
27852785 (ins nohash_imm:$cop, nohash_imm:$CRd, GPR:$base, am2offset:$offset),
2786 opc, "l\tp$cop, cr$CRd, [$base], $offset"> {
2786 !strconcat(opc, "l"), "\tp$cop, cr$CRd, [$base], $offset"> {
27872787 let Inst{31-28} = op31_28;
27882788 let Inst{24} = 0; // P = 0
27892789 let Inst{21} = 1; // W = 1
27932793
27942794 def L_OPTION : ACI<(outs),
27952795 (ins nohash_imm:$cop, nohash_imm:$CRd, GPR:$base, nohash_imm:$option),
2796 opc, "l\tp$cop, cr$CRd, [$base], $option"> {
2796 !strconcat(opc, "l"), "\tp$cop, cr$CRd, [$base], $option"> {
27972797 let Inst{31-28} = op31_28;
27982798 let Inst{24} = 0; // P = 0
27992799 let Inst{23} = 1; // U = 1
1313
1414 # CHECK: dmb nshst
1515 0x56 0xf0 0x7f 0xf5
16
17 # CHECK: ldclvc p5, cr15, [r8], #-0
18 0x00 0xf5 0x78 0x7c
1619
1720 # CHECK: ldr r0, [r2], #15
1821 0x0f 0x00 0x92 0xe4