[PATCH] D11053: [ARM] Add ADD tests for Thumb2 narrowing (nfc)
Renato Golin
renato.golin at linaro.org
Thu Jul 9 06:22:39 PDT 2015
rengolin accepted this revision.
rengolin added a reviewer: rengolin.
This revision is now accepted and ready to land.
================
Comment at: test/MC/ARM/thumb2-narrow-dp.ll:67
@@ +66,3 @@
+ ADD r3, r3, r1 // T2
+// CHECK: add r3, r1 @ encoding: [0x0b,0x44]
+
----------------
scott-0 wrote:
> rengolin wrote:
> > Not testing for higher registers in T2/T3? Or conditional T2?
> I didn't include them because the 3-to-2 operand narrowing doesn't affect them. I'm happy to add them to make this file more complete. Hireg T2 and T3 are already tested in basic-thumb2-instructions.s (line 119+, hireg T2 and T3).
>
> I can't find a test for conditional T2. I'm happy to add one, but I think it would fit best in same part of basic-thumb2-instructions.s.
No, that's ok. If you want, for completeness, you can add another commit later. This is related to 3-to-2 changes and should remain as such.
================
Comment at: test/MC/ARM/thumb2-narrow-dp.ll:78
@@ +77,3 @@
+ ADD sp, sp, r10 // T2
+// CHECK: add sp, r10 @ encoding: [0xd5,0x44]
+
----------------
scott-0 wrote:
> rengolin wrote:
> > Not testing T1/3/4? Conditionals?
> I can add some to basic-thumb2-instructions.s.
>
> And, I'm happy to add them here, too, if you think that's best.
>
Same here.
http://reviews.llvm.org/D11053
More information about the llvm-commits
mailing list