xref: /llvm-project/bolt/test/RISCV/load-store.s (revision ab14eb23b6b4939cefa01f8cb16d7540f9686144)
1// RUN: %clang %cflags -o %t %s
2// RUN: link_fdata --no-lbr %s %t %t.fdata
3// RUN: llvm-bolt %t -o %t.null --data=%t.fdata --dyno-stats | FileCheck %s
4
5// CHECK: BOLT-INFO: program-wide dynostats after all optimizations before SCTC and FOP (no change):
6// CHECK: 3000 : executed instructions
7// CHECK: 1000 : executed load instructions
8// CHECK: 1000 : executed store instructions
9
10    .globl _start
11_start:
12# FDATA: 1 _start #_start# 1
13    ld t0, (gp)
14    sd t0, (gp)
15    ret
16    .size _start, .-_start
17