miscompile: miscompile rv64: add,addi,andi,fcvt.s.h,feq.s,flh

Run:explore-b577f07195-20261129-105236
Kind:miscompile
Category:miscompile rv64: add,addi,andi,fcvt.s.h,feq.s,flh M
Occurrences:2 in 2 configs, 2 test files
Snippet from:stores-of-loads-merging.f68f9e8d.cdaa9fe6.932cd787.ca075f606b.ll (mutant of stores-of-loads-merging.f68f9e8d.cdaa9fe6.932cd787.ll) @i8_i16_rotate via llvm-extract + llvm-reduce
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+xtheadba -O0
Local check:reproduces at b577f07195
Compiler Explorer:not applicable: Compiler Explorer compiles RISC-V but cannot run it

Snippet:

define ptr @i8_i16_rotate(ptr %p, ptr %q) {
SW_D:
  %L1 = load i1, ptr %p, align 1
  %0 = sext i1 %L1 to i64
  %G = getelementptr i8, ptr %q, i64 %0
  ret ptr %G
}

Reproduce:

./exec_oracle.py --flags '-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+xtheadba -O0' --funcs i8_i16_rotate snippet.ll

Local execution result:

62 of 64 inputs differ (first: #1)
SelectionDAG hash fd40b6d3834fce34, GlobalISel hash 2471ccd7cd0d905b
b0: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+xtheadba -O0 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+xtheadba -O2 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+xtheadba -O0 -global-isel -global-isel-abort=2

Occurrences (2):

InputFunctionConfig
stores-of-loads-merging.f68f9e8d.cdaa9fe6.932cd787.7450f149.c27d7d173e.ll (mutant of stores-of-loads-merging.f68f9e8d.cdaa9fe6.932cd787.7450f149.ll)i8_i16_rotate-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh -O0
stores-of-loads-merging.f68f9e8d.cdaa9fe6.932cd787.ca075f606b.ll (mutant of stores-of-loads-merging.f68f9e8d.cdaa9fe6.932cd787.ll)i8_i16_rotate-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+xtheadba -O0

Generated 2026-11-29 14:49 UTC.