Tim Northover | c801b4a | 2014-04-15 14:55:11 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -triple arm64-linux-gnu -target-abi aapcs -ffreestanding -emit-llvm -w -o - %s | FileCheck %s |
| 2 | |
| 3 | // AAPCS clause C.8 says: If the argument has an alignment of 16 then the NGRN |
| 4 | // is rounded up to the next even number. |
| 5 | |
| 6 | // CHECK: void @test1(i32 %x0, i128 %x2_x3, i128 %x4_x5, i128 %x6_x7, i128 %sp.coerce) |
| 7 | typedef union { __int128 a; } Small; |
| 8 | void test1(int x0, __int128 x2_x3, __int128 x4_x5, __int128 x6_x7, Small sp) { |
| 9 | } |
| 10 | |
| 11 | |
| 12 | // CHECK: void @test2(i32 %x0, i128 %x2_x3.coerce, i32 %x4, i128 %x6_x7.coerce, i32 %sp, i128 %sp16.coerce) |
| 13 | void test2(int x0, Small x2_x3, int x4, Small x6_x7, int sp, Small sp16) { |
| 14 | } |