[llvm] ef253d9 - [RISCV] Adding missing test from a4a29438f
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 19 13:46:15 PDT 2022
Author: Philip Reames
Date: 2022-09-19T13:45:56-07:00
New Revision: ef253d9b47302a0bcb69adb83598dd6c55e904bb
URL: https://github.com/llvm/llvm-project/commit/ef253d9b47302a0bcb69adb83598dd6c55e904bb
DIFF: https://github.com/llvm/llvm-project/commit/ef253d9b47302a0bcb69adb83598dd6c55e904bb.diff
LOG: [RISCV] Adding missing test from a4a29438f
This change was originally reviewed as part of what became a4a29438f, but apparently forgot to git-add it when applying the patch. Oops.
Added:
llvm/test/MC/RISCV/Ztso.s
Modified:
Removed:
################################################################################
diff --git a/llvm/test/MC/RISCV/Ztso.s b/llvm/test/MC/RISCV/Ztso.s
new file mode 100644
index 0000000000000..fb4f08efe51e3
--- /dev/null
+++ b/llvm/test/MC/RISCV/Ztso.s
@@ -0,0 +1,15 @@
+# RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-ztso -riscv-no-aliases 2>&1 | FileCheck %s
+# RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-ztso -riscv-no-aliases 2>&1 | FileCheck %s
+
+# Note: Ztso doesn't add or remove any instructions, so this is basically
+# just checking that a) we accepted the attribute name, and b) codegen did
+# not change. The ELF header flag is tested in elf-flags.s
+
+# CHECK-NOT: not a recognized feature
+
+# CHECK: fence iorw, iorw
+fence iorw, iorw
+# CHECK: fence.tso
+fence.tso
+# CHECK: fence.i
+fence.i
More information about the llvm-commits
mailing list