1 ; RUN: not llc -mtriple=riscv64 < %s 2>&1 | FileCheck %s
3 @a = external global [4 x i32], align 16
5 ; CHECK-COUNT-2: error: invalid operand for inline asm constraint 's'
7 define void @test(i64 %i) {
9 %x = alloca i32, align 4
10 %ai = getelementptr inbounds [4 x i32], ptr @a, i64 0, i64 %i
11 call void asm sideeffect "", "s,~{dirflag},~{fpsr},~{flags}"(ptr %x)
12 call void asm sideeffect "", "s,~{dirflag},~{fpsr},~{flags}"(ptr %ai)