brintos

brintos / llvm-project-archived public Read only

0
0
Text · 746 B · 1c7a8a5 Raw
26 lines · plain
1; RUN: llc < %s -mtriple=x86_64--2; PR37633	%struct.__block_descriptor = type { i64, i64 }4 5define %struct.__block_descriptor @evUTCTime() nounwind {6entry:7	br i1 false, label %if.then, label %return8 9if.then:		; preds = %entry10	%srcval18 = load i128, ptr null, align 8		; <i128> [#uses=1]11	%tmp15 = lshr i128 %srcval18, 64		; <i128> [#uses=1]12	%tmp9 = mul i128 %tmp15, 18446744073709551616000		; <i128> [#uses=1]13	br label %return14 15return:		; preds = %if.then, %entry16	%retval.0 = phi i128 [ %tmp9, %if.then ], [ undef, %entry ]		; <i128> [#uses=0]17	ret %struct.__block_descriptor undef18}19 20define i128 @test(i128 %arg) nounwind {21	%A = shl i128 1, 9222	%B = sub i128 0, %A23	%C = mul i128 %arg, %B24	ret i128 %C  ;; should codegen to neg(shift)25}26