llvm-project/llvm/test/CodeGen/X86/pr1505.ll

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
620 B
LLVM
Raw Normal View History

; 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
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) {
; 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
entry:
store float %F, float* @G
ret void
}