diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-08 19:13:57 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-08 19:13:57 -0800 |
commit | 11418ef9f027c503e371da0bf82aff9387826594 (patch) | |
tree | 6196dc075d32b5a262f6f7445c720215fc7fe08f /tests/cases | |
parent | 8d20a1424af064991bee3c66ef83ba0886b01180 (diff) |
emit proper large float constants when js opts are to be run
Diffstat (limited to 'tests/cases')
-rw-r--r-- | tests/cases/storebigfloat.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/cases/storebigfloat.ll b/tests/cases/storebigfloat.ll new file mode 100644 index 00000000..c9995835 --- /dev/null +++ b/tests/cases/storebigfloat.ll @@ -0,0 +1,17 @@ + +@.str = private unnamed_addr constant [15 x i8] c"hello, world!\0A\00", align 1 ; [#uses=1 type=[15 x i8]*] + +; [#uses=0] +define i32 @main() { +entry: + %retval = alloca i32, align 4 ; [#uses=1 type=i32*] + %f = alloca float, align 4 + store float 1.000000e+10, float* %f, align 4 + store i32 0, i32* %retval + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([15 x i8]* @.str, i32 0, i32 0)) ; [#uses=0 type=i32] + ret i32 1 +} + +; [#uses=1] +declare i32 @printf(i8*, ...) + |