Skip to content

Commit 6628f98

Browse files
committed
add tc to check alignment of int types
1 parent b09ee68 commit 6628f98

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
; RUN: llc < %s -mtriple=powerpc-unknown-linux | FileCheck %s
2+
; RUN: llc < %s -mtriple=powerpc64-unknown-linux | FileCheck %s
3+
; RUN: llc < %s -mtriple=powerpc64le-unknown-linux | FileCheck %s
4+
5+
; CHECK: .set .Li8,
6+
; CHECK-NEXT: .size .Li8, 1
7+
@i8 = private constant i8 42
8+
9+
; CHECK: .set .Li16,
10+
; CHECK-NEXT: .size .Li16, 2
11+
@i16 = private constant i16 42
12+
13+
; CHECK: .set .Li32,
14+
; CHECK-NEXT: .size .Li32, 4
15+
@i32 = private constant i32 42
16+
17+
; CHECK: .set .Li64,
18+
; CHECK-NEXT: .size .Li64, 8
19+
@i64 = private constant i64 42
20+
21+
; CHECK: .set .Li128,
22+
; CHECK-NEXT: .size .Li128, 16
23+
@i128 = private constant i128 42
24+

0 commit comments

Comments
 (0)