Displaying 2 results from an estimated 2 matches for "reg_a_2".
2016 Feb 07
5
Assigning constant value without alloca/load/store
...g the registers in an anonymous struct
define { i32, i32, i32 } @test(i32 %var_c) {
; Initializing registers
%reg_a_0 = select i1 true, i32 0, i32 0
%reg_b_0 = select i1 true, i32 0, i32 0
%reg_c_0 = select i1 true, i32 0, i32 0
; Translated instructions
%reg_a_1 = add i32 %var_c, 2
%reg_a_2 = select i1 true, i32 12, i32 0
; Prepare return values
%ret_0 = insertvalue { i32, i32, i32 } undef, i32 %reg_a_2, 0
%ret_1 = insertvalue { i32, i32, i32 } %ret_0, i32 %reg_b_0, 1
%ret_2 = insertvalue { i32, i32, i32 } %ret_1, i32 %reg_c_0, 2
ret { i32, i32, i32 } %ret_2
}
I am basica...
2016 Feb 08
2
Assigning constant value without alloca/load/store
...32 %var_c) {
>> ; Initializing registers
>> %reg_a_0 = select i1 true, i32 0, i32 0
>> %reg_b_0 = select i1 true, i32 0, i32 0
>> %reg_c_0 = select i1 true, i32 0, i32 0
>>
>> ; Translated instructions
>> %reg_a_1 = add i32 %var_c, 2
>> %reg_a_2 = select i1 true, i32 12, i32 0
>>
>> ; Prepare return values
>> %ret_0 = insertvalue { i32, i32, i32 } undef, i32 %reg_a_2, 0
>> %ret_1 = insertvalue { i32, i32, i32 } %ret_0, i32 %reg_b_0, 1
>> %ret_2 = insertvalue { i32, i32, i32 } %ret_1, i32 %reg_c_0, 2
&g...