Files
clang-p2996/llvm/test/CodeGen/SPARC/LeonCASAInstructionUT.ll
Fangrui Song 728490257e [Sparc,test] Change llc -march= to -mtriple=
Similar to 806761a762

-mtriple= specifies the full target triple while -march= merely sets the
architecture part of the default target triple (e.g. Windows, macOS),
leaving a target triple which may not make sense.

Therefore, -march= is error-prone and not recommended for tests without a target
triple. The issue has been benign as we recognize sparc*-apple-darwin as ELF instead
of rejecting it outrightly.
2024-12-15 10:29:34 -08:00

32 lines
1.6 KiB
LLVM

; RUN: llc %s -O0 -mtriple=sparc -mcpu=leon3 -mattr=+hasleoncasa -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=gr712rc -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=leon4 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=gr740 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=myriad2 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=myriad2.1 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=myriad2.2 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=myriad2.3 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=ma2100 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=ma2150 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=ma2155 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=ma2450 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=ma2455 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=ma2x5x -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=ma2080 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=ma2085 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=ma2480 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=ma2485 -o - | FileCheck %s
; RUN: llc %s -O0 -mtriple=sparc -mcpu=ma2x8x -o - | FileCheck %s
; CHECK-LABEL: casa_test
; CHECK-DAG: mov 1, [[R0:%[a-z0-9]+]]
; CHECK-DAG: mov %g0, [[R1:%[a-z0-9]+]]
; CHECK: casa [{{%[a-z0-9]+}}] 10, [[R1]], [[R0]]
define void @casa_test(ptr %ptr) {
%pair = cmpxchg ptr %ptr, i32 0, i32 1 monotonic monotonic
%r = extractvalue { i32, i1 } %pair, 0
%stored1 = icmp eq i32 %r, 0
ret void
}