1 ; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
7 call i8* @foo(), !align !{i64 2}
10 ; CHECK: align applies only to load instructions
11 ; CHECK-NEXT: call i8* @foo()
13 define i8 @f2(i8* %x) {
15 %y = load i8, i8* %x, !align !{i64 2}
18 ; CHECK: align applies only to pointer types
19 ; CHECK-NEXT: load i8, i8* %x
21 define i8* @f3(i8** %x) {
23 %y = load i8*, i8** %x, !align !{}
26 ; CHECK: align takes one operand
27 ; CHECK-NEXT: load i8*, i8** %x
29 define i8* @f4(i8** %x) {
31 %y = load i8*, i8** %x, !align !{!"str"}
34 ; CHECK: align metadata value must be an i64!
35 ; CHECK-NEXT: load i8*, i8** %x
37 define i8* @f5(i8** %x) {
39 %y = load i8*, i8** %x, !align !{i32 2}
42 ; CHECK: align metadata value must be an i64!
43 ; CHECK-NEXT: load i8*, i8** %x
45 define i8* @f6(i8** %x) {
47 %y = load i8*, i8** %x, !align !{i64 3}
50 ; CHECK: align metadata value must be a power of 2!
51 ; CHECK-NEXT: load i8*, i8** %x
53 define i8* @f7(i8** %x) {
55 %y = load i8*, i8** %x, !align !{i64 1073741824}
58 ; CHECK: alignment is larger that implementation defined limit
59 ; CHECK-NEXT: load i8*, i8** %x