brintos

brintos / llvm-project-archived public Read only

0
0
Text · 560 B · 0866a0b Raw
25 lines · plain
1; RUN: llc < %s -mtriple=i686--2; RUN: llc < %s -mtriple=x86_64--3; PR10334 5define i64 @test1(double %t) {6        %u = bitcast double %t to i64           ; <i64> [#uses=1]7        ret i64 %u8}9 10define double @test2(i64 %t) {11        %u = bitcast i64 %t to double           ; <double> [#uses=1]12        ret double %u13}14 15define i32 @test3(float %t) {16        %u = bitcast float %t to i32            ; <i32> [#uses=1]17        ret i32 %u18}19 20define float @test4(i32 %t) {21        %u = bitcast i32 %t to float            ; <float> [#uses=1]22        ret float %u23}24 25