diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
commit | 009b1c42aa6266385f2c37e227516b24077e6dd7 (patch) | |
tree | 64ba909838c23261cace781ece27d106134ea451 /test/Feature/fold-fpcast.ll |
Diffstat (limited to 'test/Feature/fold-fpcast.ll')
-rw-r--r-- | test/Feature/fold-fpcast.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Feature/fold-fpcast.ll b/test/Feature/fold-fpcast.ll new file mode 100644 index 0000000000000..cdf8da69f680e --- /dev/null +++ b/test/Feature/fold-fpcast.ll @@ -0,0 +1,18 @@ +; RUN: llvm-as < %s | llvm-dis | not grep bitcast + +define i32 @test1() { + ret i32 bitcast(float 0x400D9999A0000000 to i32) +} + +define float @test2() { + ret float bitcast(i32 17 to float) +} + +define i64 @test3() { + ret i64 bitcast (double 0x400921FB4D12D84A to i64) +} + +define double @test4() { + ret double bitcast (i64 42 to double) +} + |