2019-12-09 23:47:47 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
|
|
; RUN: llc < %s -mcpu=i486 | FileCheck %s
|
2008-01-24 14:35:44 +08:00
|
|
|
; PR1505
|
2007-07-03 08:58:37 +08:00
|
|
|
|
|
|
|
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
|
|
|
|
target triple = "i686-apple-darwin8"
|
|
|
|
@G = weak global float 0.000000e+00 ; <float*> [#uses=1]
|
|
|
|
|
|
|
|
define void @t1(float %F) {
|
2019-12-09 23:47:47 +08:00
|
|
|
; CHECK-LABEL: t1:
|
|
|
|
; CHECK: ## %bb.0: ## %entry
|
|
|
|
; CHECK-NEXT: flds {{[0-9]+}}(%esp)
|
|
|
|
; CHECK-NEXT: movl L_G$non_lazy_ptr, %eax
|
|
|
|
; CHECK-NEXT: fstps (%eax)
|
|
|
|
; CHECK-NEXT: retl
|
2007-07-03 08:58:37 +08:00
|
|
|
entry:
|
|
|
|
store float %F, float* @G
|
|
|
|
ret void
|
|
|
|
}
|