Skip to content

Commit d414c2a

Browse files
committed
[RISCV] Add test coverage for TSO AMOs [nfc]
1 parent 1096d23 commit d414c2a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

llvm/test/CodeGen/RISCV/atomic-cmpxchg.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
; RUN: | FileCheck -check-prefix=RV32I %s
44
; RUN: llc -mtriple=riscv32 -mattr=+a -verify-machineinstrs < %s \
55
; RUN: | FileCheck -check-prefix=RV32IA %s
6+
; RUN: llc -mtriple=riscv32 -mattr=+a,+experimental-ztso -verify-machineinstrs < %s \
7+
; RUN: | FileCheck -check-prefix=RV32IA %s
68
; RUN: llc -mtriple=riscv64 -verify-machineinstrs < %s \
79
; RUN: | FileCheck -check-prefix=RV64I %s
810
; RUN: llc -mtriple=riscv64 -mattr=+a -verify-machineinstrs < %s \
911
; RUN: | FileCheck -check-prefix=RV64IA %s
12+
; RUN: llc -mtriple=riscv64 -mattr=+a,+experimental-ztso -verify-machineinstrs < %s \
13+
; RUN: | FileCheck -check-prefix=RV64IA %s
1014

1115
define void @cmpxchg_i8_monotonic_monotonic(ptr %ptr, i8 %cmp, i8 %val) nounwind {
1216
; RV32I-LABEL: cmpxchg_i8_monotonic_monotonic:

llvm/test/CodeGen/RISCV/atomic-rmw.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
; RUN: | FileCheck -check-prefix=RV32I %s
44
; RUN: llc -mtriple=riscv32 -mattr=+a -verify-machineinstrs < %s \
55
; RUN: | FileCheck -check-prefix=RV32IA %s
6+
; RUN: llc -mtriple=riscv32 -mattr=+a,+experimental-ztso -verify-machineinstrs < %s \
7+
; RUN: | FileCheck -check-prefix=RV32IA %s
68
; RUN: llc -mtriple=riscv64 -verify-machineinstrs < %s \
79
; RUN: | FileCheck -check-prefix=RV64I %s
810
; RUN: llc -mtriple=riscv64 -mattr=+a -verify-machineinstrs < %s \
911
; RUN: | FileCheck -check-prefix=RV64IA %s
12+
; RUN: llc -mtriple=riscv64 -mattr=+a,+experimental-ztso -verify-machineinstrs < %s \
13+
; RUN: | FileCheck -check-prefix=RV64IA %s
1014

1115
define i8 @atomicrmw_xchg_i8_monotonic(ptr %a, i8 %b) nounwind {
1216
; RV32I-LABEL: atomicrmw_xchg_i8_monotonic:

0 commit comments

Comments
 (0)