tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] BUG for ARM (32) maintainers


From: Christian Jullien
Subject: [Tinycc-devel] BUG for ARM (32) maintainers
Date: Sat, 8 Oct 2016 14:13:54 +0200

Hi all,

 

I don’t know if you are aware, but for uncounted months, 73_arm64 is broken on ARM (as with mi RPi which uses Hard floats).

73_arm64.c is a test for some ARM64 specific things (as said in comments) but it should work on any architecture.

 

I’m not sure it true because Makefile remove this test on x86_64:

ifeq ($(ARCH),x86-64)

SKIP += 73_arm64.test

endif

 

and few tests fail on ARM 32bits.

 

struct hfa22 { double a, b; } hfa22 = { 22.1, 22.2 };

struct hfa23 { double a, b, c; } hfa23 = { 23.1, 23.2, 23.3 };

void fa_hfa22(struct hfa22 a)

{ printf("%.1f %.1f\n", a.a, a.a); }

void fa_hfa23(struct hfa23 a)

{ printf("%.1f %.1f %.1f\n", a.a, a.b, a.c); }

 

Produce very odd output:

 

22.1 14062397313099232526779062197421365549262346396679940976990779843254415203\

6542699037484120807638372078832756475012702952271444888941820024224719560951162\

8575679026900400603709871755458975332105925837683422154104689154782906619076155\

3736330762442875748330750045323264.0

23.1 0.0

24.1 0.0

 

While

22.1 22.2

23.1 23.3

24.1 24.4

 

Is expected.

 

It is also know that 78_vla_label is not supported on ARM (32), could you either implement this feature or remove this test as it is expected to fail (not implemented).

I’m also asking myself if, for portable reasons, we need TCC_VLA (or CONFIG_TCC_VLA) automatic defined feature macro that can be checked in code.

 

Christian

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]