2011-03-17 00:01:31 +01:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
|
2011-04-05 22:20:26 +02:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-linux -regalloc=greedy | FileCheck %s
|
2011-03-17 00:01:31 +01: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 16:27:55 +02:00
|
|
|
|
2008-09-05 19:24:07 +02:00
|
|
|
declare float @qux(float %y)
|
2007-08-02 16:27:55 +02:00
|
|
|
|
2008-09-05 19:24:07 +02:00
|
|
|
define float @array(float %a) nounwind {
|
2009-06-05 00:49:04 +02:00
|
|
|
%n = fmul float %a, 9.0
|
2008-09-05 19:24:07 +02:00
|
|
|
%m = call float @qux(float %n)
|
2009-06-05 00:49:04 +02:00
|
|
|
%o = fmul float %m, 9.0
|
2007-08-02 16:27:55 +02:00
|
|
|
ret float %o
|
|
|
|
}
|