2013-03-13 00:27:52 +08:00
|
|
|
; REQUIRES: asserts
|
2011-03-17 07:01:31 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
|
2011-04-06 04:20:26 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-linux -regalloc=greedy | FileCheck %s
|
2014-07-15 11:00:39 +08:00
|
|
|
; RUN: llc < %s -mtriple=i386-linux -mattr=+sse2 | FileCheck %s
|
2011-03-17 07:01:31 +08:00
|
|
|
; 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
|
|
|
|
|
2017-08-02 08:28:10 +08:00
|
|
|
; RUN: llc < %s -mtriple=i686-- -mattr=+sse2 -o /dev/null -stats -info-output-file - | FileCheck %s -check-prefix=X32stat
|
2011-03-17 07:01:31 +08:00
|
|
|
; X32stat: 12 asm-printer
|
2007-08-02 22:27:55 +08:00
|
|
|
|
2008-09-06 01:24:07 +08:00
|
|
|
declare float @qux(float %y)
|
2007-08-02 22:27:55 +08:00
|
|
|
|
2008-09-06 01:24:07 +08:00
|
|
|
define float @array(float %a) nounwind {
|
2009-06-05 06:49:04 +08:00
|
|
|
%n = fmul float %a, 9.0
|
2008-09-06 01:24:07 +08:00
|
|
|
%m = call float @qux(float %n)
|
2009-06-05 06:49:04 +08:00
|
|
|
%o = fmul float %m, 9.0
|
2007-08-02 22:27:55 +08:00
|
|
|
ret float %o
|
|
|
|
}
|