2011-03-25 06:22:54 +00:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
|
|
|
|
; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
|
|
|
|
; CHECK: LCPI
|
|
|
|
; CHECK: LCPI
|
|
|
|
; CHECK: LCPI
|
|
|
|
; CHECK-NOT: LCPI
|
|
|
|
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-linux -o /dev/null -stats -info-output-file - | FileCheck %s -check-prefix=X64stat
|
|
|
|
; X64stat: 6 asm-printer
|
|
|
|
|
|
|
|
; RUN: llc < %s -march=x86 -mattr=+sse2 -o /dev/null -stats -info-output-file - | FileCheck %s -check-prefix=X32stat
|
|
|
|
; X32stat: 12 asm-printer
|
2007-08-02 14:27:55 +00:00
|
|
|
|
2008-09-05 17:24:07 +00:00
|
|
|
declare float @qux(float %y)
|
2007-08-02 14:27:55 +00:00
|
|
|
|
2008-09-05 17:24:07 +00:00
|
|
|
define float @array(float %a) nounwind {
|
2009-06-04 22:49:04 +00:00
|
|
|
%n = fmul float %a, 9.0
|
2008-09-05 17:24:07 +00:00
|
|
|
%m = call float @qux(float %n)
|
2009-06-04 22:49:04 +00:00
|
|
|
%o = fmul float %m, 9.0
|
2007-08-02 14:27:55 +00:00
|
|
|
ret float %o
|
|
|
|
}
|