mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Change all floating constants that are not exactly
representable to use hex format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41722 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
d4af306aec
commit
c2ec2baf3d
21 files changed
+32
-32
No files matched your search
@@ -14,10 +14,10 @@ begin
|
||||
%t3 = zext i31 %i to i1280
|
||||
%t4 = sext i31 %i to i1280
|
||||
|
||||
%t5 = fptoui float 3.14159 to i31
|
||||
%t5 = fptoui float 0x400921FA00000000 to i31
|
||||
%t6 = uitofp i31 %t5 to double
|
||||
|
||||
%t7 = fptosi double -1234.5678 to i28
|
||||
%t7 = fptosi double 0xC0934A456D5CFAAD to i28
|
||||
%t8 = sitofp i8 -1 to double
|
||||
%t9 = uitofp i8 255 to double
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; RUN: llvm-as < %s | llvm-dis | not grep bitcast
|
||||
|
||||
define i60 @test1() {
|
||||
ret i60 fptoui(float 3.7 to i60)
|
||||
ret i60 fptoui(float 0x400D9999A0000000 to i60)
|
||||
}
|
||||
|
||||
define float @test2() {
|
||||
@@ -9,7 +9,7 @@ define float @test2() {
|
||||
}
|
||||
|
||||
define i64 @test3() {
|
||||
ret i64 bitcast (double 3.1415926 to i64)
|
||||
ret i64 bitcast (double 0x400921FB4D12D84A to i64)
|
||||
}
|
||||
|
||||
define double @test4() {
|
||||
@@ -17,7 +17,7 @@ define double @test4() {
|
||||
}
|
||||
|
||||
define i30 @test5() {
|
||||
ret i30 fptoui(float 3.7 to i30)
|
||||
ret i30 fptoui(float 0x400D9999A0000000 to i30)
|
||||
}
|
||||
|
||||
define float @test6() {
|
||||
@@ -25,7 +25,7 @@ define float @test6() {
|
||||
}
|
||||
|
||||
define i64 @test7() {
|
||||
ret i64 bitcast (double 3.1415926 to i64)
|
||||
ret i64 bitcast (double 0x400921FB4D12D84A to i64)
|
||||
}
|
||||
|
||||
define double @test8() {
|
||||
|
||||
Reference in new issue
Block a user