
- Instead of lowering float/double ISD::ATOMIC_LOAD / ISD::ATOMIC_STORE nodes to regular LOAD/STORE nodes, make them legal and select those nodes properly instead. This avoids exposing them to the DAGCombiner. - AtomicExpand pass no longer casts float/double atomic load/stores to integer (FP128 is still casted).
15 lines
423 B
LLVM
15 lines
423 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
|
|
; Test float atomic stores.
|
|
;
|
|
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
|
|
|
|
define void @f1(ptr %src, float %val) {
|
|
; CHECK-LABEL: f1:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: ste %f0, 0(%r2)
|
|
; CHECK-NEXT: bcr 15, %r0
|
|
; CHECK-NEXT: br %r14
|
|
store atomic float %val, ptr %src seq_cst, align 4
|
|
ret void
|
|
}
|