-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[NFC][AArch64] move AArch64 non auto-generated tests to static file #126312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Move AArch64 non auto-generated test code into a static file, since the script ./llvm/test/CodeGen/AArch64/Atomics/generate-tests.py will overwrite these tests when re-run. (Test code was originally added in change 465bc5e)
@llvm/pr-subscribers-backend-aarch64 Author: Jonathan Thackray (jthackray) ChangesMove AArch64 non auto-generated test code into a static file, since the script ./llvm/test/CodeGen/AArch64/Atomics/generate-tests.py will overwrite Full diff: https://github.com/llvm/llvm-project/pull/126312.diff 2 Files Affected:
diff --git a/llvm/test/CodeGen/AArch64/Atomics/aarch64-atomic-load-lse2.ll b/llvm/test/CodeGen/AArch64/Atomics/aarch64-atomic-load-lse2.ll
index 3732d4feb0c67bb..0e9c29758244a33 100644
--- a/llvm/test/CodeGen/AArch64/Atomics/aarch64-atomic-load-lse2.ll
+++ b/llvm/test/CodeGen/AArch64/Atomics/aarch64-atomic-load-lse2.ll
@@ -567,118 +567,6 @@ define dso_local i128 @load_atomic_i128_unaligned_seq_cst_const(ptr readonly %pt
ret i128 %r
}
-define dso_local half @load_atomic_f16_aligned_unordered(ptr %ptr) {
-; CHECK-LABEL: load_atomic_f16_aligned_unordered:
-; CHECK: ldrh w8, [x0]
- %r = load atomic half, ptr %ptr unordered, align 2
- ret half %r
-}
-
-define dso_local half @load_atomic_f16_aligned_unordered_const(ptr readonly %ptr) {
-; CHECK-LABEL: load_atomic_f16_aligned_unordered_const:
-; CHECK: ldrh w8, [x0]
- %r = load atomic half, ptr %ptr unordered, align 2
- ret half %r
-}
-
-define dso_local half @load_atomic_f16_aligned_monotonic(ptr %ptr) {
-; CHECK-LABEL: load_atomic_f16_aligned_monotonic:
-; CHECK: ldrh w8, [x0]
- %r = load atomic half, ptr %ptr monotonic, align 2
- ret half %r
-}
-
-define dso_local half @load_atomic_f16_aligned_monotonic_const(ptr readonly %ptr) {
-; CHECK-LABEL: load_atomic_f16_aligned_monotonic_const:
-; CHECK: ldrh w8, [x0]
- %r = load atomic half, ptr %ptr monotonic, align 2
- ret half %r
-}
-
-define dso_local half @load_atomic_f16_aligned_acquire(ptr %ptr) {
-; CHECK-LABEL: load_atomic_f16_aligned_acquire:
-; CHECK: ldarh w8, [x0]
- %r = load atomic half, ptr %ptr acquire, align 2
- ret half %r
-}
-
-define dso_local half @load_atomic_f16_aligned_acquire_const(ptr readonly %ptr) {
-; CHECK-LABEL: load_atomic_f16_aligned_acquire_const:
-; CHECK: ldarh w8, [x0]
- %r = load atomic half, ptr %ptr acquire, align 2
- ret half %r
-}
-
-define dso_local half @load_atomic_f16_aligned_seq_cst(ptr %ptr) {
-; CHECK-LABEL: load_atomic_f16_aligned_seq_cst:
-; CHECK: ldarh w8, [x0]
- %r = load atomic half, ptr %ptr seq_cst, align 2
- ret half %r
-}
-
-define dso_local half @load_atomic_f16_aligned_seq_cst_const(ptr readonly %ptr) {
-; CHECK-LABEL: load_atomic_f16_aligned_seq_cst_const:
-; CHECK: ldarh w8, [x0]
- %r = load atomic half, ptr %ptr seq_cst, align 2
- ret half %r
-}
-
-define dso_local bfloat @load_atomic_bf16_aligned_unordered(ptr %ptr) {
-; CHECK-LABEL: load_atomic_bf16_aligned_unordered:
-; CHECK: ldrh w8, [x0]
- %r = load atomic bfloat, ptr %ptr unordered, align 2
- ret bfloat %r
-}
-
-define dso_local bfloat @load_atomic_bf16_aligned_unordered_const(ptr readonly %ptr) {
-; CHECK-LABEL: load_atomic_bf16_aligned_unordered_const:
-; CHECK: ldrh w8, [x0]
- %r = load atomic bfloat, ptr %ptr unordered, align 2
- ret bfloat %r
-}
-
-define dso_local bfloat @load_atomic_bf16_aligned_monotonic(ptr %ptr) {
-; CHECK-LABEL: load_atomic_bf16_aligned_monotonic:
-; CHECK: ldrh w8, [x0]
- %r = load atomic bfloat, ptr %ptr monotonic, align 2
- ret bfloat %r
-}
-
-define dso_local bfloat @load_atomic_bf16_aligned_monotonic_const(ptr readonly %ptr) {
-; CHECK-LABEL: load_atomic_bf16_aligned_monotonic_const:
-; CHECK: ldrh w8, [x0]
- %r = load atomic bfloat, ptr %ptr monotonic, align 2
- ret bfloat %r
-}
-
-define dso_local bfloat @load_atomic_bf16_aligned_acquire(ptr %ptr) {
-; CHECK-LABEL: load_atomic_bf16_aligned_acquire:
-; CHECK: ldarh w8, [x0]
- %r = load atomic bfloat, ptr %ptr acquire, align 2
- ret bfloat %r
-}
-
-define dso_local bfloat @load_atomic_bf16_aligned_acquire_const(ptr readonly %ptr) {
-; CHECK-LABEL: load_atomic_bf16_aligned_acquire_const:
-; CHECK: ldarh w8, [x0]
- %r = load atomic bfloat, ptr %ptr acquire, align 2
- ret bfloat %r
-}
-
-define dso_local bfloat @load_atomic_bf16_aligned_seq_cst(ptr %ptr) {
-; CHECK-LABEL: load_atomic_bf16_aligned_seq_cst:
-; CHECK: ldarh w8, [x0]
- %r = load atomic bfloat, ptr %ptr seq_cst, align 2
- ret bfloat %r
-}
-
-define dso_local bfloat @load_atomic_bf16_aligned_seq_cst_const(ptr readonly %ptr) {
-; CHECK-LABEL: load_atomic_bf16_aligned_seq_cst_const:
-; CHECK: ldarh w8, [x0]
- %r = load atomic bfloat, ptr %ptr seq_cst, align 2
- ret bfloat %r
-}
-
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
; -O0: {{.*}}
; -O1: {{.*}}
diff --git a/llvm/test/CodeGen/AArch64/v8.4-atomic.ll b/llvm/test/CodeGen/AArch64/v8.4-atomic.ll
new file mode 100644
index 000000000000000..1394b89159c41d9
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/v8.4-atomic.ll
@@ -0,0 +1,113 @@
+; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+lse2 %s -o - | FileCheck %s
+
+define dso_local half @load_atomic_f16_aligned_unordered(ptr %ptr) {
+; CHECK-LABEL: load_atomic_f16_aligned_unordered:
+; CHECK: ldrh w8, [x0]
+ %r = load atomic half, ptr %ptr unordered, align 2
+ ret half %r
+}
+
+define dso_local half @load_atomic_f16_aligned_unordered_const(ptr readonly %ptr) {
+; CHECK-LABEL: load_atomic_f16_aligned_unordered_const:
+; CHECK: ldrh w8, [x0]
+ %r = load atomic half, ptr %ptr unordered, align 2
+ ret half %r
+}
+
+define dso_local half @load_atomic_f16_aligned_monotonic(ptr %ptr) {
+; CHECK-LABEL: load_atomic_f16_aligned_monotonic:
+; CHECK: ldrh w8, [x0]
+ %r = load atomic half, ptr %ptr monotonic, align 2
+ ret half %r
+}
+
+define dso_local half @load_atomic_f16_aligned_monotonic_const(ptr readonly %ptr) {
+; CHECK-LABEL: load_atomic_f16_aligned_monotonic_const:
+; CHECK: ldrh w8, [x0]
+ %r = load atomic half, ptr %ptr monotonic, align 2
+ ret half %r
+}
+
+define dso_local half @load_atomic_f16_aligned_acquire(ptr %ptr) {
+; CHECK-LABEL: load_atomic_f16_aligned_acquire:
+; CHECK: ldarh w8, [x0]
+ %r = load atomic half, ptr %ptr acquire, align 2
+ ret half %r
+}
+
+define dso_local half @load_atomic_f16_aligned_acquire_const(ptr readonly %ptr) {
+; CHECK-LABEL: load_atomic_f16_aligned_acquire_const:
+; CHECK: ldarh w8, [x0]
+ %r = load atomic half, ptr %ptr acquire, align 2
+ ret half %r
+}
+
+define dso_local half @load_atomic_f16_aligned_seq_cst(ptr %ptr) {
+; CHECK-LABEL: load_atomic_f16_aligned_seq_cst:
+; CHECK: ldarh w8, [x0]
+ %r = load atomic half, ptr %ptr seq_cst, align 2
+ ret half %r
+}
+
+define dso_local half @load_atomic_f16_aligned_seq_cst_const(ptr readonly %ptr) {
+; CHECK-LABEL: load_atomic_f16_aligned_seq_cst_const:
+; CHECK: ldarh w8, [x0]
+ %r = load atomic half, ptr %ptr seq_cst, align 2
+ ret half %r
+}
+
+define dso_local bfloat @load_atomic_bf16_aligned_unordered(ptr %ptr) {
+; CHECK-LABEL: load_atomic_bf16_aligned_unordered:
+; CHECK: ldrh w8, [x0]
+ %r = load atomic bfloat, ptr %ptr unordered, align 2
+ ret bfloat %r
+}
+
+define dso_local bfloat @load_atomic_bf16_aligned_unordered_const(ptr readonly %ptr) {
+; CHECK-LABEL: load_atomic_bf16_aligned_unordered_const:
+; CHECK: ldrh w8, [x0]
+ %r = load atomic bfloat, ptr %ptr unordered, align 2
+ ret bfloat %r
+}
+
+define dso_local bfloat @load_atomic_bf16_aligned_monotonic(ptr %ptr) {
+; CHECK-LABEL: load_atomic_bf16_aligned_monotonic:
+; CHECK: ldrh w8, [x0]
+ %r = load atomic bfloat, ptr %ptr monotonic, align 2
+ ret bfloat %r
+}
+
+define dso_local bfloat @load_atomic_bf16_aligned_monotonic_const(ptr readonly %ptr) {
+; CHECK-LABEL: load_atomic_bf16_aligned_monotonic_const:
+; CHECK: ldrh w8, [x0]
+ %r = load atomic bfloat, ptr %ptr monotonic, align 2
+ ret bfloat %r
+}
+
+define dso_local bfloat @load_atomic_bf16_aligned_acquire(ptr %ptr) {
+; CHECK-LABEL: load_atomic_bf16_aligned_acquire:
+; CHECK: ldarh w8, [x0]
+ %r = load atomic bfloat, ptr %ptr acquire, align 2
+ ret bfloat %r
+}
+
+define dso_local bfloat @load_atomic_bf16_aligned_acquire_const(ptr readonly %ptr) {
+; CHECK-LABEL: load_atomic_bf16_aligned_acquire_const:
+; CHECK: ldarh w8, [x0]
+ %r = load atomic bfloat, ptr %ptr acquire, align 2
+ ret bfloat %r
+}
+
+define dso_local bfloat @load_atomic_bf16_aligned_seq_cst(ptr %ptr) {
+; CHECK-LABEL: load_atomic_bf16_aligned_seq_cst:
+; CHECK: ldarh w8, [x0]
+ %r = load atomic bfloat, ptr %ptr seq_cst, align 2
+ ret bfloat %r
+}
+
+define dso_local bfloat @load_atomic_bf16_aligned_seq_cst_const(ptr readonly %ptr) {
+; CHECK-LABEL: load_atomic_bf16_aligned_seq_cst_const:
+; CHECK: ldarh w8, [x0]
+ %r = load atomic bfloat, ptr %ptr seq_cst, align 2
+ ret bfloat %r
+}
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/52/builds/5925 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/64/builds/2218 Here is the relevant piece of the build log for the reference
|
…lvm#126312) Move AArch64 non auto-generated test code into a static file, since the script `./llvm/test/CodeGen/AArch64/Atomics/generate-tests.py` will overwrite these tests when re-run. (Test code was originally added in change 465bc5e)
Move AArch64 non auto-generated test code into a static file, since the script
./llvm/test/CodeGen/AArch64/Atomics/generate-tests.py
will overwritethese tests when re-run. (Test code was originally added in change 465bc5e)