Home
last modified time | relevance | path

Searched refs:ptrtoint (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/external/llvm/test/Assembler/
Dflags.ll163 ; CHECK: ret i64 add nuw nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
164 ret i64 add nsw nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
168 ; CHECK: ret i64 sub nuw nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
169 ret i64 sub nsw nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
173 ; CHECK: ret i64 mul nuw nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
174 ret i64 mul nuw nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
178 ; CHECK: ret i64 sdiv exact (i64 ptrtoint (i64* @addr to i64), i64 91)
179 ret i64 sdiv exact (i64 ptrtoint (i64* @addr to i64), i64 91)
183 ; CHECK: ret i64 udiv exact (i64 ptrtoint (i64* @addr to i64), i64 91)
184 ret i64 udiv exact (i64 ptrtoint (i64* @addr to i64), i64 91)
[all …]
DConstantExprFold.ll9 global i64* inttoptr (i64 add (i64 ptrtoint (i64* @A to i64), i64 0) to i64*) ; X + 0 == X
10 global i64* inttoptr (i64 sub (i64 ptrtoint (i64* @A to i64), i64 0) to i64*) ; X - 0 == X
11 global i64* inttoptr (i64 mul (i64 ptrtoint (i64* @A to i64), i64 0) to i64*) ; X * 0 == 0
12 global i64* inttoptr (i64 sdiv (i64 ptrtoint (i64* @A to i64), i64 1) to i64*) ; X / 1 == X
13 global i64* inttoptr (i64 srem (i64 ptrtoint (i64* @A to i64), i64 1) to i64*) ; X % 1 == 0
14 global i64* inttoptr (i64 and (i64 ptrtoint (i64* @A to i64), i64 0) to i64*) ; X & 0 == 0
15 global i64* inttoptr (i64 and (i64 ptrtoint (i64* @A to i64), i64 -1) to i64*) ; X & -1 == X
16 global i64 or (i64 ptrtoint (i64* @A to i64), i64 -1) ; X | -1 == -1
17 global i64* inttoptr (i64 xor (i64 ptrtoint (i64* @A to i64), i64 0) to i64*) ; X ^ 0 == X
31 global i64 and (i64 ptrtoint (i32* @cons to i64), i64 7)
/external/llvm/test/Transforms/InstSimplify/
Dgep.ll8 %e_ptr = ptrtoint %struct.A* %e to i64
9 %b_ptr = ptrtoint %struct.A* %b to i64
19 %e_ptr = ptrtoint i8* %e to i64
20 %b_ptr = ptrtoint i8* %b to i64
29 %e_ptr = ptrtoint i64* %e to i64
30 %b_ptr = ptrtoint i64* %b to i64
40 %b_ptr = ptrtoint %struct.A* %b to i64
50 %b_ptr = ptrtoint i8* %b to i64
59 %b_ptr = ptrtoint i64* %b to i64
69 %e_ptr = ptrtoint i8** %e to i64
[all …]
Dptr_diff.ll11 %first.int = ptrtoint i8* %first to i64
12 %last.int = ptrtoint i8* %last to i64
29 %first.int = ptrtoint i8* %first4 to i64
30 %last.int = ptrtoint i8* %last4 to i64
44 %first.int = ptrtoint i8* %first to i64
45 %last.int = ptrtoint i8* %last to i64
54 %p1 = ptrtoint <4 x i8*> %arg to <4 x i32>
56 %p2 = ptrtoint <4 x i32*> %bc to <4 x i32>
70 %tmp3 = ptrtoint i32* %tmp2 to i32
73 %tmp6 = ptrtoint [2 x i32]* %tmp5 to i32
D2011-10-27-BinOpCrash.ll9ptrtoint ([32 x i16]* @_ZN11xercesc_2_5L11gDigitCharsE to i32), i32 -1), i32 ptrtoint (i16* getele…
/external/llvm/test/MC/MachO/
Dcstexpr-gotpcrel-32.ll37 i32 sub (i32 ptrtoint (i32** @localgotequiv to i32),
38 …i32 ptrtoint (i32* getelementptr inbounds ([4 x %struct.data], [4 x %struct.data]* @table, i32 0, …
44 i32 sub (i32 ptrtoint (i32** @extgotequiv to i32),
45 …i32 ptrtoint (i32* getelementptr inbounds ([4 x %struct.data], [4 x %struct.data]* @table, i32 0, …
52 i32 add (i32 sub (i32 ptrtoint (i32** @extgotequiv to i32),
53 …i32 ptrtoint (i32* getelementptr inbounds ([4 x %struct.data], [4 x %struct.data]* @table, i32 0, …
61 @delta = global i32 sub (i32 ptrtoint (i32** @extgotequiv to i32),
62 i32 ptrtoint (i32* @delta to i32))
66 @deltaplus = global i32 add (i32 sub (i32 ptrtoint (i32** @localgotequiv to i32),
67 i32 ptrtoint (i32* @deltaplus to i32)),
[all …]
Dcstexpr-gotpcrel-64.ll38 i32 trunc (i64 sub (i64 ptrtoint (i32** @localgotequiv to i64),
39 …i64 ptrtoint (i32* getelementptr inbounds ([4 x %struct.data], [4 x %struct.data]* @table, i32 0, …
46 i32 trunc (i64 sub (i64 ptrtoint (i32** @extgotequiv to i64),
47 …i64 ptrtoint (i32* getelementptr inbounds ([4 x %struct.data], [4 x %struct.data]* @table, i32 0, …
56 i32 add (i32 trunc (i64 sub (i64 ptrtoint (i32** @extgotequiv to i64),
57 …i64 ptrtoint (i32* getelementptr inbounds ([4 x %struct.data], [4 x %struct.data]* @table, i32 0, …
66 @delta = global i32 trunc (i64 sub (i64 ptrtoint (i32** @extgotequiv to i64),
67 i64 ptrtoint (i32* @delta to i64))
72 @deltaplus = global i32 add (i32 trunc (i64 sub (i64 ptrtoint (i32** @localgotequiv to i64),
73 i64 ptrtoint (i32* @deltaplus to i64))
[all …]
/external/llvm/test/MC/MachO/ARM/
Dcstexpr-gotpcrel.ll37 i32 sub (i32 ptrtoint (i32** @localgotequiv to i32),
38 …i32 ptrtoint (i32* getelementptr inbounds ([4 x %struct.data], [4 x %struct.data]* @table, i32 0, …
44 i32 sub (i32 ptrtoint (i32** @extgotequiv to i32),
45 …i32 ptrtoint (i32* getelementptr inbounds ([4 x %struct.data], [4 x %struct.data]* @table, i32 0, …
52 i32 add (i32 sub (i32 ptrtoint (i32** @extgotequiv to i32),
53 …i32 ptrtoint (i32* getelementptr inbounds ([4 x %struct.data], [4 x %struct.data]* @table, i32 0, …
61 @delta = global i32 sub (i32 ptrtoint (i32** @extgotequiv to i32),
62 i32 ptrtoint (i32* @delta to i32))
66 @deltaplus = global i32 add (i32 sub (i32 ptrtoint (i32** @localgotequiv to i32),
67 i32 ptrtoint (i32* @deltaplus to i32)),
[all …]
/external/llvm/test/CodeGen/X86/
D2012-09-28-CGPBug.ll4ptrtoint (i8* blockaddress(@h, %18) to i32), i32 ptrtoint (i8* blockaddress(@h, %11) to i32)), i32…
33 %15 = add i32 %14, ptrtoint (i8* blockaddress(@h, %11) to i32)
Daddr-label-difference.ll8ptrtoint (i8* blockaddress(@test, %foo) to i32), i32 ptrtoint (i8* blockaddress(@test, %foo) to i3…
Dtailcall-returndup-void.ll11 %ln266 = ptrtoint i64* %ln265 to i64
16 …br i1 icmp ne (i64 and (i64 ptrtoint ([0 x i64]* @sES_closure to i64), i64 7), i64 0), label %c1ZP…
21 …(i64* %Base_Arg, i64* %Sp_Arg, i64* %Hp_Arg, i64 ptrtoint ([0 x i64]* @sES_closure to i64), i64 pt…
25 …(i64* %Base_Arg, i64* %Sp_Arg, i64* %Hp_Arg, i64 ptrtoint ([0 x i64]* @sES_closure to i64), i64 pt…
Dx86-64-jumps.ll19ptrtoint (i8* blockaddress(@test2, %foo) to i64), i64 ptrtoint (i8* blockaddress(@test2, %foo) to …
/external/llvm/test/Transforms/InstCombine/
Dcast_ptr.ll12 ; CHECK: ptrtoint
16 %tmpc = ptrtoint i8* %t to i32 ; <i32> [#uses=1]
26 %tmpa = ptrtoint i8* %a to i32 ; <i32> [#uses=1]
27 %tmpb = ptrtoint i8* %b to i32 ; <i32> [#uses=1]
36 %tmpa = ptrtoint i8 addrspace(2)* %a to i16
37 %tmpb = ptrtoint i8 addrspace(2)* %b to i16
46 %tmpa = ptrtoint i8 addrspace(2)* %a to i32
47 %tmpb = ptrtoint i8 addrspace(2)* %b to i32
56 %i0 = ptrtoint i8* %p to i32
57 %i1 = ptrtoint i8 addrspace(1)* %q to i32
[all …]
Dconstant-fold-address-space-pointer.ll15 ; Test constant folding of inttoptr (ptrtoint constantexpr)
20 %x = ptrtoint i32 addrspace(3)* @const_zero_i32_as3 to i32
29 %x = ptrtoint i32 addrspace(2)* @const_zero_i32_as2 to i16
38 ; CHECK-NEXT: ret i32 addrspace(4)* inttoptr (i16 ptrtoint (i32 addrspace(3)* @const_zero_i32_as3 t…
39 %x = ptrtoint i32 addrspace(3)* @const_zero_i32_as3 to i16
48 ; CHECK-NEXT: ret i32 addrspace(2)* inttoptr (i32 ptrtoint (i32 addrspace(3)* @const_zero_i32_as3 t…
49 %x = ptrtoint i32 addrspace(3)* @const_zero_i32_as3 to i32
57 ; CHECK-NEXT: ret i32 addrspace(3)* inttoptr (i8 ptrtoint (i32 addrspace(3)* @const_zero_i32_as3 to…
58 %x = ptrtoint i32 addrspace(3)* @const_zero_i32_as3 to i8
66 ret i8 ptrtoint (i32 addrspace(2)* inttoptr (i4 4 to i32 addrspace(2)*) to i8)
[all …]
Dptr-int-cast.ll7 ; CHECK: ptrtoint i32* %x to i64
8 %0 = ptrtoint i32* %x to i1
26 %t1 = ptrtoint i8* %t0 to i64
32 ; CHECK: ptrtoint <4 x i8*> %arg to <4 x i64>
34 %p1 = ptrtoint <4 x i8*> %arg to <4 x i32>
40 ; CHECK: ptrtoint <4 x i8*> %arg to <4 x i64>
42 %p1 = ptrtoint <4 x i8*> %arg to <4 x i128>
Dconstant-fold-alias.ll10 @A2 = alias inttoptr (i64 and (i64 ptrtoint (i8* getelementptr inbounds ([4 x i8], [4 x i8]* @G3, i…
16 ret i64 and (i64 ptrtoint (i32* @G1 to i64), i64 1)
23 ret i64 and (i64 ptrtoint (i32* @G2 to i64), i64 1)
30 ret i64 and (i64 ptrtoint (i32* @A1 to i64), i64 1)
38 ret i64 and (i64 ptrtoint (i32* @A2 to i64), i64 1)
/external/llvm/test/MC/MachO/AArch64/
Dcstexpr-gotpcrel.ll34 i32 trunc (i64 sub (i64 ptrtoint (i32** @localgotequiv to i64),
35 …i64 ptrtoint (i32* getelementptr inbounds ([4 x %struct.data], [4 x %struct.data]* @table, i32 0, …
44 i32 trunc (i64 sub (i64 ptrtoint (i32** @extgotequiv to i64),
45 …i64 ptrtoint (i32* getelementptr inbounds ([4 x %struct.data], [4 x %struct.data]* @table, i32 0, …
54 i32 add (i32 trunc (i64 sub (i64 ptrtoint (i32** @extgotequiv to i64),
55 …i64 ptrtoint (i32* getelementptr inbounds ([4 x %struct.data], [4 x %struct.data]* @table, i32 0, …
65 @delta = global i32 trunc (i64 sub (i64 ptrtoint (i32** @extgotequiv to i64),
66 i64 ptrtoint (i32* @delta to i64))
71 @deltaplus = global i32 add (i32 trunc (i64 sub (i64 ptrtoint (i32** @localgotequiv to i64),
72 i64 ptrtoint (i32* @deltaplus to i64))
[all …]
/external/llvm/test/Other/
Dconstant-fold-gep-address-spaces.ll27 ; PLAIN-X: @a = constant i64 mul (i64 ptrtoint (double addrspace(4)* getelementptr (double, double …
28 @a = constant i64 mul (i64 3, i64 mul (i64 ptrtoint ({[7 x double], [7 x double]} addrspace(4)* get…
30 ; PLAIN-X: @b = constant i64 ptrtoint (double addrspace(4)* getelementptr ({ i1, double }, { i1, do…
31 @b = constant i64 ptrtoint ([13 x double] addrspace(4)* getelementptr ({i1, [13 x double]}, {i1, [1…
33 ; PLAIN-X: @c = constant i64 mul nuw (i64 ptrtoint (double addrspace(4)* getelementptr (double, dou…
34 @c = constant i64 ptrtoint (double addrspace(4)* getelementptr ({double, double, double, double}, {…
36 ; PLAIN-X: @d = constant i64 mul nuw (i64 ptrtoint (double addrspace(4)* getelementptr (double, dou…
37 @d = constant i64 ptrtoint (double addrspace(4)* getelementptr ([13 x double], [13 x double] addrsp…
39 ; PLAIN-X: @e = constant i64 ptrtoint (double addrspace(4)* getelementptr ({ double, float, double,…
40 @e = constant i64 ptrtoint (double addrspace(4)* getelementptr ({double, float, double, double}, {d…
[all …]
Dconstant-fold-gep.ll51 ; PLAIN: @a = constant i64 mul (i64 ptrtoint (double* getelementptr (double, double* null, i32 1) t…
52 ; PLAIN: @b = constant i64 ptrtoint (double* getelementptr ({ i1, double }, { i1, double }* null, i…
53 ; PLAIN: @c = constant i64 mul nuw (i64 ptrtoint (double* getelementptr (double, double* null, i32 …
54 ; PLAIN: @d = constant i64 mul nuw (i64 ptrtoint (double* getelementptr (double, double* null, i32 …
55 ; PLAIN: @e = constant i64 ptrtoint (double* getelementptr ({ double, float, double, double }, { do…
57 ; PLAIN: @g = constant i64 ptrtoint (double* getelementptr ({ i1, double }, { i1, double }* null, i…
58 ; PLAIN: @h = constant i64 ptrtoint (i1** getelementptr (i1*, i1** null, i32 1) to i64)
59 ; PLAIN: @i = constant i64 ptrtoint (i1** getelementptr ({ i1, i1* }, { i1, i1* }* null, i64 0, i32…
79 @a = constant i64 mul (i64 3, i64 mul (i64 ptrtoint ({[7 x double], [7 x double]}* getelementptr ({…
80 @b = constant i64 ptrtoint ([13 x double]* getelementptr ({i1, [13 x double]}, {i1, [13 x double]}*…
[all …]
/external/llvm/test/Transforms/ConstProp/
Dconstant-expr.ll48ptrtoint (i1* @B to i64) to i256), i256 64), i256 -62771017353866807634955070562867279526389808370…
51ptrtoint (i1* @A to i64) to i256), i256 64), i256 -62771017353866807634955070562867279526389808370…
53 ; CHECK: @T3 = global i64 add (i64 ptrtoint (i1* @B to i64), i64 -1)
54ptrtoint (i1* @B to i64) to i256), i256 64), i256 -62771017353866807634955070562867279526389808370…
57ptrtoint (i1* @B to i64) to i256), i256 64), i256 -62771017353866807634955070562867279526389808370…
60ptrtoint (i1* @B to i64) to i256), i256 64), i256 -62771017353866807634955070562867279526389808370…
105 i32 select (i1 icmp ult (i32 ptrtoint (i8* @X to i32),
106 i32 ptrtoint (i8* @Y to i32)),
107 i32 select (i1 icmp ult (i32 ptrtoint (i8* @X to i32),
108 i32 ptrtoint (i8* @Y to i32)),
/external/llvm/test/MC/COFF/
Dir-to-imgrel.ll6 @"\01?x@@3HA" = global i64 sub nsw (i64 ptrtoint (i64* @"\01?x@@3HA" to i64), i64 ptrtoint (i8* @__…
11 @fp = global i64 sub nsw (i64 ptrtoint (void ()* @f to i64), i64 ptrtoint (i8* @__ImageBase to i64)…
/external/llvm/test/CodeGen/AArch64/
Dldst-regoffset.ll27 %addrint_uxtw = ptrtoint i8* %base to i64
55 %addrint_uxtw = ptrtoint i16* %base to i64
64 %base_sxtw = ptrtoint i16* %base to i64
74 %base_lsl = ptrtoint i16* %base to i64
82 %base_uxtwN = ptrtoint i16* %base to i64
107 %addrint_uxtw = ptrtoint i32* %base to i64
117 %base_sxtw = ptrtoint i32* %base to i64
127 %base_lsl = ptrtoint i32* %base to i64
135 %base_uxtwN = ptrtoint i32* %base to i64
159 %addrint_uxtw = ptrtoint i64* %base to i64
[all …]
Di128-align.ll9 %starti = ptrtoint %struct* @var to i64
12 %endi = ptrtoint %struct* %endp to i64
21 %starti = ptrtoint %struct* @var to i64
24 %endi = ptrtoint i128* %endp to i64
Darm64-register-offset-addressing.ll27 %addrint_uxtw = ptrtoint i8* %base to i64
43 %addrint_uxtw = ptrtoint i16* %base to i64
52 %base_sxtw = ptrtoint i16* %base to i64
63 %base_uxtwN = ptrtoint i16* %base to i64
78 %addrint_uxtw = ptrtoint i32* %base to i64
87 %base_sxtw = ptrtoint i32* %base to i64
98 %base_uxtwN = ptrtoint i32* %base to i64
112 %addrint_uxtw = ptrtoint i64* %base to i64
121 %base_sxtw = ptrtoint i64* %base to i64
131 %base_uxtwN = ptrtoint i64* %base to i64
/external/llvm/test/CodeGen/ARM/
D2007-04-03-UndefinedSymbol.ll34 …br i1 icmp eq (i64 and (i64 zext (i32 ptrtoint (void (%struct.B*)* @_ZN1B1iEv to i32) to i64), i64…
38 …%ctg23.i = getelementptr i8, i8* %b2.i, i32 ashr (i32 trunc (i64 lshr (i64 zext (i32 ptrtoint (voi…
42 …%ctg2.i = getelementptr i8, i8* %tmp151.i, i32 ptrtoint (void (%struct.B*)* @_ZN1B1iEv to i32) ; …
49 …%iftmp.2.0.i = phi void (%struct.B*)* [ %tmp2223.i, %cond_true.i ], [ inttoptr (i32 ptrtoint (void…
51 …%ctg25.i = getelementptr i8, i8* %b4.i, i32 ashr (i32 trunc (i64 lshr (i64 zext (i32 ptrtoint (voi…
56 …br i1 icmp eq (i64 and (i64 zext (i32 ptrtoint (void (%struct.B*)* @_ZN1B1jEv to i32) to i64), i64…
60 …%ctg23.i36 = getelementptr i8, i8* %b2.i35, i32 ashr (i32 trunc (i64 lshr (i64 zext (i32 ptrtoint
64 …%ctg2.i42 = getelementptr i8, i8* %tmp151.i41, i32 ptrtoint (void (%struct.B*)* @_ZN1B1jEv to i32)…
71 …%iftmp.2.0.i49 = phi void (%struct.B*)* [ %tmp2223.i45, %cond_true.i46 ], [ inttoptr (i32 ptrtoint
73 …%ctg25.i54 = getelementptr i8, i8* %b4.i53, i32 ashr (i32 trunc (i64 lshr (i64 zext (i32 ptrtoint
[all …]

12345678910>>...13