diff options
author | Cyril SIX <cyril.six@kalray.eu> | 2019-02-12 16:47:18 +0100 |
---|---|---|
committer | Cyril SIX <cyril.six@kalray.eu> | 2019-02-12 16:47:18 +0100 |
commit | 685c2f76b5f8b320495868cfdcadbf203f50a0bd (patch) | |
tree | de1e379c6c99cdc94ecaf930318c79718dcce9cb /test | |
parent | 41109bd86942b028240ac20758ff29853b025534 (diff) | |
download | compcert-kvx-685c2f76b5f8b320495868cfdcadbf203f50a0bd.tar.gz compcert-kvx-685c2f76b5f8b320495868cfdcadbf203f50a0bd.zip |
Added Ointofsingle + floatconv unit test
Diffstat (limited to 'test')
-rw-r--r-- | test/mppa/instr/floatconv.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/mppa/instr/floatconv.c b/test/mppa/instr/floatconv.c new file mode 100644 index 00000000..025f968b --- /dev/null +++ b/test/mppa/instr/floatconv.c @@ -0,0 +1,9 @@ +#include "framework.h" + +float int2float(int v){ + return v; +} + +BEGIN_TEST(int) + c = (int) int2float(a) + (int) int2float(b) + (int) int2float(42.3); +END_TEST() |