17 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=riscv64 -verify-machineinstrs < %s | FileCheck %s3 4; This test verifies that a repeated store is not eliminated with optnone (improves debugging).5 6define void @foo(ptr %p) noinline optnone {7; CHECK-LABEL: foo:8; CHECK: # %bb.0:9; CHECK-NEXT: li a1, 810; CHECK-NEXT: sw a1, 0(a0)11; CHECK-NEXT: sw a1, 0(a0)12; CHECK-NEXT: ret13 store i32 8, ptr %p, align 414 store i32 8, ptr %p, align 415 ret void16}17