From 685c2f76b5f8b320495868cfdcadbf203f50a0bd Mon Sep 17 00:00:00 2001 From: Cyril SIX Date: Tue, 12 Feb 2019 16:47:18 +0100 Subject: Added Ointofsingle + floatconv unit test --- test/mppa/instr/floatconv.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/mppa/instr/floatconv.c (limited to 'test/mppa') 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() -- cgit