Lines Matching refs:OPT
1 … %clang_cc1 -x cl -O1 -emit-llvm %s -o - -triple x86_64-linux-gnu | FileCheck %s -check-prefix=OPT
8 // OPT: @gtest1 = constant i64 2147483648
22 //OPT: @positiveShift32
24 //OPT: [[M32:%.+]] = and i32 %b, 31
25 //OPT-NEXT: [[C32:%.+]] = shl i32 %a, [[M32]]
28 //OPT-NEXT: [[E32:%.+]] = add nsw i32 [[C32]], 2
30 //OPT-NEXT: ret i32 [[E32]]
34 //OPT: @positiveShift64
36 //OPT: [[M64:%.+]] = and i64 %b, 63
37 //OPT-NEXT: [[C64:%.+]] = ashr i64 %a, [[M64]]
40 //OPT-NEXT: [[E64:%.+]] = add nsw i64 [[C64]], 4
42 //OPT-NEXT: ret i64 [[E64]]
48 //OPT: @vectorVectorTest
50 //OPT: [[VM:%.+]] = and <4 x i32> %b, <i32 31, i32 31, i32 31, i32 31>
51 //OPT-NEXT: [[VC:%.+]] = shl <4 x i32> %a, [[VM]]
53 //OPT-NEXT: [[VF:%.+]] = add <4 x i32> [[VC]], <i32 2, i32 4, i32 16, i32 8>
57 //OPT-NEXT: ret <4 x i32> [[VF]]
61 //OPT: @vectorScalarTest
63 //OPT: [[SP0:%.+]] = insertelement <4 x i32> undef, i32 %b, i32 0
64 //OPT: [[SP1:%.+]] = shufflevector <4 x i32> [[SP0]], <4 x i32> undef, <4 x i32> zeroinitializer
65 //OPT: [[VSM:%.+]] = and <4 x i32> [[SP1]], <i32 31, i32 31, i32 31, i32 31>
66 //OPT-NEXT: [[VSC:%.+]] = shl <4 x i32> %a, [[VSM]]
68 //OPT-NEXT: [[VSF:%.+]] = add <4 x i32> [[VSC]], <i32 4, i32 4, i32 4, i32 4>
71 //OPT-NEXT: ret <4 x i32> [[VSF]]