[llvm-mca] Add test case (NFC)
authorEvandro Menezes <e.menezes@samsung.com>
Thu, 22 Nov 2018 00:38:36 +0000 (00:38 +0000)
committerEvandro Menezes <e.menezes@samsung.com>
Thu, 22 Nov 2018 00:38:36 +0000 (00:38 +0000)
Add test case that will serve as the base for D54820.

llvm-svn: 347440

llvm/test/tools/llvm-mca/AArch64/CortexA57/shifted-register.s [new file with mode: 0644]

diff --git a/llvm/test/tools/llvm-mca/AArch64/CortexA57/shifted-register.s b/llvm/test/tools/llvm-mca/AArch64/CortexA57/shifted-register.s
new file mode 100644 (file)
index 0000000..4c0f580
--- /dev/null
@@ -0,0 +1,7 @@
+# RUN: not llvm-mca -march=aarch64 -mcpu=cortex-a57 -resource-pressure=false < %s 2> %t
+# RUN: FileCheck --input-file %t %s
+
+  add  x0, x1, x2, lsl #3
+
+# CHECK: error
+# CHECK-SAME: unable to resolve scheduling class for write variant.