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