blob: 4be14d2128efac8757daa57af1444f843eabd978 [file] [log] [blame]
NAKAMURA Takumi5b6198df2011-03-16 23:01:31 +00001; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
Jakob Stoklund Olesen18fd84c2011-04-05 20:20:26 +00002; RUN: llc < %s -mtriple=x86_64-linux -regalloc=greedy | FileCheck %s
NAKAMURA Takumi5b6198df2011-03-16 23:01:31 +00003; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
4; CHECK: LCPI
5; CHECK: LCPI
6; CHECK: LCPI
7; CHECK-NOT: LCPI
8
9; RUN: llc < %s -mtriple=x86_64-linux -o /dev/null -stats -info-output-file - | FileCheck %s -check-prefix=X64stat
10; X64stat: 6 asm-printer
11
12; RUN: llc < %s -march=x86 -mattr=+sse2 -o /dev/null -stats -info-output-file - | FileCheck %s -check-prefix=X32stat
13; X32stat: 12 asm-printer
Dan Gohmanfa3eeee2007-08-02 14:27:55 +000014
Evan Cheng4f0d2152008-09-05 17:24:07 +000015declare float @qux(float %y)
Dan Gohmanfa3eeee2007-08-02 14:27:55 +000016
Evan Cheng4f0d2152008-09-05 17:24:07 +000017define float @array(float %a) nounwind {
Dan Gohmana5b96452009-06-04 22:49:04 +000018 %n = fmul float %a, 9.0
Evan Cheng4f0d2152008-09-05 17:24:07 +000019 %m = call float @qux(float %n)
Dan Gohmana5b96452009-06-04 22:49:04 +000020 %o = fmul float %m, 9.0
Dan Gohmanfa3eeee2007-08-02 14:27:55 +000021 ret float %o
22}