1; REQUIRES: asserts
2; RUN: llc < %s -O0 -mtriple=riscv64 -debug-only=isel 2>&1 | FileCheck %s
3
4define i32* @fooOptnone(i32* %p, i32* %q, i32** %z) #0 {
5; CHECK-NOT: Changing optimization level for Function fooOptnone
6; CHECK-NOT: Restoring optimization level for Function fooOptnone
7
8entry:
9  %r = load i32, i32* %p
10  %s = load i32, i32* %q
11  %y = load i32*, i32** %z
12
13  %t0 = add i32 %r, %s
14  %t1 = add i32 %t0, 1
15  %t2 = getelementptr i32, i32* %y, i32 1
16  %t3 = getelementptr i32, i32* %t2, i32 %t1
17
18  ret i32* %t3
19
20}
21
22attributes #0 = { nounwind optnone noinline }
23