1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv64 -verify-machineinstrs < %s | FileCheck %s
4 ; This test verifies that a repeated store is not eliminated with optnone (improves debugging).
6 define void @foo(ptr %p) noinline optnone {
10 ; CHECK-NEXT: sw a1, 0(a0)
11 ; CHECK-NEXT: sw a1, 0(a0)
13 store i32 8, ptr %p, align 4
14 store i32 8, ptr %p, align 4