summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM64
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-05-16 09:42:04 +0000
committerTim Northover <tnorthover@apple.com>2014-05-16 09:42:04 +0000
commit5896b066e65bd7a6392ffde1a74104ba1d5a6a00 (patch)
tree9610345375e13662ecde5b8045459d6dfe4bb184 /llvm/test/CodeGen/ARM64
parent28aef9e05d6dca63b412e9a16311f9fd0040a012 (diff)
downloadbcm5719-llvm-5896b066e65bd7a6392ffde1a74104ba1d5a6a00.tar.gz
bcm5719-llvm-5896b066e65bd7a6392ffde1a74104ba1d5a6a00.zip
TableGen: fix operand counting for aliases
TableGen has a fairly dubious heuristic to decide whether an alias should be printed: does the alias have lest operands than the real instruction. This is bad enough (particularly with no way to override it), but it should at least be calculated consistently for both strings. This patch implements that logic: first get the *correct* string for the variant, in the same way as the Matcher, without guessing; then count the number of whitespace chars. There are basically 4 changes this brings about after the previous commits; all of these appear to be good, so I have changed the tests: + ARM64: we print "neg X, Y" instead of "sub X, xzr, Y". + ARM64: we skip implicit "uxtx" and "uxtw" modifiers. + Sparc: we print "mov A, B" instead of "or %g0, A, B". + Sparc: we print "fcmpX A, B" instead of "fcmpX %fcc0, A, B" llvm-svn: 208969
Diffstat (limited to 'llvm/test/CodeGen/ARM64')
-rw-r--r--llvm/test/CodeGen/ARM64/arith.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/ARM64/arith.ll b/llvm/test/CodeGen/ARM64/arith.ll
index 803af6cb8c5..e4be8e98a78 100644
--- a/llvm/test/CodeGen/ARM64/arith.ll
+++ b/llvm/test/CodeGen/ARM64/arith.ll
@@ -156,7 +156,7 @@ define i64 @t17(i16 %a, i64 %x) nounwind ssp {
entry:
; CHECK-LABEL: t17:
; CHECK: sxth [[REG:x[0-9]+]], w0
-; CHECK: sub x0, xzr, [[REG]], lsl #32
+; CHECK: neg x0, [[REG]], lsl #32
; CHECK: ret
%tmp16 = sext i16 %a to i64
%tmp17 = mul i64 %tmp16, -4294967296
OpenPOWER on IntegriCloud