
- 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).
12 lines
248 B
LLVM
12 lines
248 B
LLVM
; Test float atomic loads.
|
|
;
|
|
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
|
|
|
|
define float @f1(ptr %src) {
|
|
; CHECK-LABEL: f1:
|
|
; CHECK: le %f0, 0(%r2)
|
|
; CHECK: br %r14
|
|
%val = load atomic float, ptr %src seq_cst, align 4
|
|
ret float %val
|
|
}
|