From cd22ea42c3d48767bd4ed3268c55219e68f9c98b Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 4 Nov 2018 18:39:22 +0300 Subject: [PATCH] test: nasm-t -- Add floatize test Signed-off-by: Cyrill Gorcunov --- travis/test/floatize.asm | 16 ++++++++++++++++ travis/test/floatize.bin.t | Bin 0 -> 40 bytes travis/test/floatize.json | 17 +++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 travis/test/floatize.asm create mode 100644 travis/test/floatize.bin.t create mode 100644 travis/test/floatize.json diff --git a/travis/test/floatize.asm b/travis/test/floatize.asm new file mode 100644 index 000000000..0ff43efd5 --- /dev/null +++ b/travis/test/floatize.asm @@ -0,0 +1,16 @@ +%assign x13 13+26 +%assign f16 __float16__(1.6e-7) +%assign f32 __float32__(1.6e-7) +%assign f64 __float64__(1.6e-7) +%assign f80m __float80m__(1.6e-7) +%assign f80e __float80e__(1.6e-7) +%assign f128l __float128l__(1.6e-7) +%assign f128h __float128h__(1.6e-7) + + dw f16 + dd f32 + dq f64 + dq f80m + dw f80e + dq f128l + dq f128h diff --git a/travis/test/floatize.bin.t b/travis/test/floatize.bin.t new file mode 100644 index 0000000000000000000000000000000000000000..146fb738f3133946289e61bd914e08259f022140 GIT binary patch literal 40 wcmZQ(C_kfZV%1~tsIRis?(ez87Qyl}t6$ic=7veN{Qf!jFo*KH8R0MN0dLe3cK`qY literal 0 HcmV?d00001 diff --git a/travis/test/floatize.json b/travis/test/floatize.json new file mode 100644 index 000000000..95f7d179c --- /dev/null +++ b/travis/test/floatize.json @@ -0,0 +1,17 @@ +[ + { + "description": "Test of floating-point (-Ox)", + "id": "floatize", + "format": "bin", + "source": "floatize.asm", + "option": "-Ox", + "target": [ + { "output": "floatize.bin" } + ] + }, + { + "description": "Test of floating-point (-O0)", + "ref": "floatize", + "option": "-O0" + } +]