2011-03-16 23:01:31 +00:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
|
2011-04-05 20:20:26 +00:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-linux -regalloc=greedy | FileCheck %s
|
2011-03-16 23:01:31 +00:00
|
|
|
; 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
|
|
|
|
}
|