search for: reg_c_0

Displaying 2 results from an estimated 2 matches for "reg_c_0".

Did you mean: reg_b_0
2016 Feb 07
5
Assigning constant value without alloca/load/store
...ng like this: REG A = VAR C + CONST 2 REG A = CONST 12 So my workaround looks like: ; I am returning 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...
2016 Feb 08
2
Assigning constant value without alloca/load/store
...workaround looks like: >> >> ; I am returning 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 >> %r...