X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FFeature%2Ffold-fpcast.ll;h=cdf8da69f680e9d3bbd5ad83adb85eeec1461cfc;hb=b485de5d8c3fe0c62c0b07f63f64bd10f6803c17;hp=cb93ef8c823808345b5f2d15117a38aacb624cd1;hpb=6a126513fc82c5871d0785cc5fc9c89ce8c9055d;p=oota-llvm.git diff --git a/test/Feature/fold-fpcast.ll b/test/Feature/fold-fpcast.ll index cb93ef8c823..cdf8da69f68 100644 --- a/test/Feature/fold-fpcast.ll +++ b/test/Feature/fold-fpcast.ll @@ -1,18 +1,18 @@ ; RUN: llvm-as < %s | llvm-dis | not grep bitcast -int %test1() { - ret int bitcast(float 3.7 to int) +define i32 @test1() { + ret i32 bitcast(float 0x400D9999A0000000 to i32) } -float %test2() { - ret float bitcast(int 17 to float) +define float @test2() { + ret float bitcast(i32 17 to float) } -long %test3() { - ret long bitcast (double 3.1415926 to long) +define i64 @test3() { + ret i64 bitcast (double 0x400921FB4D12D84A to i64) } -double %test4() { - ret double bitcast (long 42 to double) +define double @test4() { + ret double bitcast (i64 42 to double) }