File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
llvm/test/Regression/Transforms/SimplifyLibCalls Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 4
4
declare int %ffs (int)
5
5
declare int %ffsl (int)
6
6
declare int %ffsll (long)
7
+ declare int %__builtin_ffs (int)
8
+
9
+ %non_const = external global int
7
10
8
11
implementation ; Functions:
9
12
10
13
int %main () {
14
+ %arg = load int* %non_const
15
+ %val0 = call int %ffs (int %arg )
11
16
%val1 = call int %ffs (int 1 )
12
- %val2 = call int %ffs (int 2048 )
17
+ %val2 = call int %__builtin_ffs (int 2048 )
13
18
%val3 = call int %ffsl (int 65536 )
14
19
%val4 = call int %ffsll (long 1024 )
15
20
%val5 = call int %ffsll (long 17179869184 )
@@ -19,5 +24,6 @@ int %main () {
19
24
%rslt3 = add int %val5 , %val6
20
25
%rslt4 = add int %rslt1 , %rslt2
21
26
%rslt5 = add int %rslt4 , %rslt3
27
+ %rslt6 = add int %rslt5 , %val0
22
28
ret int %rslt5
23
29
}
You can’t perform that action at this time.
0 commit comments