mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-27 06:54:30 +00:00
f7935a3f63
`llc -march` is problematic because it only switches the target architecture, but leaves the operating system unchanged. This occasionally leads to indeterministic tests because the OS from LLVM_DEFAULT_TARGET_TRIPLE is used. However we can simply always use `llc -mtriple` instead. This changes all the tests to do this to avoid people using -march when they copy and paste parts of tests. See also the discussion in https://reviews.llvm.org/D35287 llvm-svn: 309774
32 lines
785 B
LLVM
32 lines
785 B
LLVM
; RUN: llc -mtriple=x86_64-- < %s | FileCheck %s
|
|
@sc8 = external global i8
|
|
|
|
define void @atomic_maxmin_i8() {
|
|
; CHECK: atomic_maxmin_i8
|
|
%1 = atomicrmw max i8* @sc8, i8 5 acquire
|
|
; CHECK: [[LABEL1:\.?LBB[0-9]+_[0-9]+]]:
|
|
; CHECK: cmpb
|
|
; CHECK: jg
|
|
; CHECK: lock cmpxchgb
|
|
; CHECK: jne [[LABEL1]]
|
|
%2 = atomicrmw min i8* @sc8, i8 6 acquire
|
|
; CHECK: [[LABEL3:\.?LBB[0-9]+_[0-9]+]]:
|
|
; CHECK: cmpb
|
|
; CHECK: jl
|
|
; CHECK: lock cmpxchgb
|
|
; CHECK: jne [[LABEL3]]
|
|
%3 = atomicrmw umax i8* @sc8, i8 7 acquire
|
|
; CHECK: [[LABEL5:\.?LBB[0-9]+_[0-9]+]]:
|
|
; CHECK: cmpb
|
|
; CHECK: ja
|
|
; CHECK: lock cmpxchgb
|
|
; CHECK: jne [[LABEL5]]
|
|
%4 = atomicrmw umin i8* @sc8, i8 8 acquire
|
|
; CHECK: [[LABEL7:\.?LBB[0-9]+_[0-9]+]]:
|
|
; CHECK: cmpb
|
|
; CHECK: jb
|
|
; CHECK: lock cmpxchgb
|
|
; CHECK: jne [[LABEL7]]
|
|
ret void
|
|
}
|