search for: magically_fixed

Displaying 1 result from an estimated 1 matches for "magically_fixed".

2009 Jan 20
1
[LLVMdev] bitcast i32 ... to i32 "magically fixes" value?
...datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32- i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64- f80:128:128" target triple = "i386-apple-darwin8" define i32 @entry () { %result = invoke i32 @main_0() to label %Done unwind label %Exn Done: %magically_fixed = bitcast i32 %result to i32 ret i32 %result ; change to %magically_fixed ;;; ret i32 %magically_fixed Exn: ret i32 16 } define i32 @main_0() { ret i32 8 } @.str = internal constant [7 x i8] c"0x%08x\00" ; <[7 x i8]*> [#uses=1] define i32 @main(i32 %argc, i8** %a...