blob: 399f19f8d2e29801ec44e9c8c0971240452d99f3 [file] [log] [blame]
Dan Gohmanc8054d92009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc32 -mcpu=g5 | not grep CPI
Chris Lattner226eb562006-04-12 19:04:27 +00002
Eli Friedman7595ce02010-08-02 00:18:19 +00003define void @test1(<4 x i32>* %P1, <4 x i32>* %P2, <4 x float>* %P3) nounwind {
Tanya Lattnera99d8b52008-02-19 08:07:33 +00004 %tmp = load <4 x i32>* %P1 ; <<4 x i32>> [#uses=1]
5 %tmp4 = and <4 x i32> %tmp, < i32 -2147483648, i32 -2147483648, i32 -2147483648, i32 -2147483648 > ; <<4 x i32>> [#uses=1]
6 store <4 x i32> %tmp4, <4 x i32>* %P1
7 %tmp7 = load <4 x i32>* %P2 ; <<4 x i32>> [#uses=1]
8 %tmp9 = and <4 x i32> %tmp7, < i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647 > ; <<4 x i32>> [#uses=1]
9 store <4 x i32> %tmp9, <4 x i32>* %P2
10 %tmp.upgrd.1 = load <4 x float>* %P3 ; <<4 x float>> [#uses=1]
11 %tmp11 = bitcast <4 x float> %tmp.upgrd.1 to <4 x i32> ; <<4 x i32>> [#uses=1]
12 %tmp12 = and <4 x i32> %tmp11, < i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647 > ; <<4 x i32>> [#uses=1]
13 %tmp13 = bitcast <4 x i32> %tmp12 to <4 x float> ; <<4 x float>> [#uses=1]
14 store <4 x float> %tmp13, <4 x float>* %P3
15 ret void
Chris Lattner226eb562006-04-12 19:04:27 +000016}
17
Eli Friedman7595ce02010-08-02 00:18:19 +000018define <4 x i32> @test_30() nounwind {
Tanya Lattnera99d8b52008-02-19 08:07:33 +000019 ret <4 x i32> < i32 30, i32 30, i32 30, i32 30 >
Chris Lattner31b7d892006-04-17 05:58:22 +000020}
Chris Lattner02440a92006-04-17 06:06:50 +000021
Eli Friedman7595ce02010-08-02 00:18:19 +000022define <4 x i32> @test_29() nounwind {
Tanya Lattnera99d8b52008-02-19 08:07:33 +000023 ret <4 x i32> < i32 29, i32 29, i32 29, i32 29 >
Chris Lattner02440a92006-04-17 06:06:50 +000024}
Chris Lattner9a3859b2006-04-17 06:58:16 +000025
Eli Friedman7595ce02010-08-02 00:18:19 +000026define <8 x i16> @test_n30() nounwind {
Tanya Lattnera99d8b52008-02-19 08:07:33 +000027 ret <8 x i16> < i16 -30, i16 -30, i16 -30, i16 -30, i16 -30, i16 -30, i16 -30, i16 -30 >
Chris Lattner9a3859b2006-04-17 06:58:16 +000028}
29
Eli Friedman7595ce02010-08-02 00:18:19 +000030define <16 x i8> @test_n104() nounwind {
Tanya Lattnera99d8b52008-02-19 08:07:33 +000031 ret <16 x i8> < i8 -104, i8 -104, i8 -104, i8 -104, i8 -104, i8 -104, i8 -104, i8 -104, i8 -104, i8 -104, i8 -104, i8 -104, i8 -104, i8 -104, i8 -104, i8 -104 >
Chris Lattner9a3859b2006-04-17 06:58:16 +000032}
Chris Lattner8cdba162006-04-17 17:54:18 +000033
Eli Friedman7595ce02010-08-02 00:18:19 +000034define <4 x i32> @test_vsldoi() nounwind {
Tanya Lattnera99d8b52008-02-19 08:07:33 +000035 ret <4 x i32> < i32 512, i32 512, i32 512, i32 512 >
Chris Lattner8cdba162006-04-17 17:54:18 +000036}
37
Eli Friedman7595ce02010-08-02 00:18:19 +000038define <8 x i16> @test_vsldoi_65023() nounwind {
39 ret <8 x i16> < i16 65023, i16 65023,i16 65023,i16 65023,i16 65023,i16 65023,i16 65023,i16 65023 >
40}
41
42define <4 x i32> @test_rol() nounwind {
Tanya Lattnera99d8b52008-02-19 08:07:33 +000043 ret <4 x i32> < i32 -11534337, i32 -11534337, i32 -11534337, i32 -11534337 >
Chris Lattner8cdba162006-04-17 17:54:18 +000044}