Skip to content

Commit

Permalink
Last one maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Sep 2, 2024
1 parent 41f4dfb commit e0954f2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tran.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7095,7 +7095,7 @@ impl<'a> InstructionTranslator<'a> {
let raw_ptr = self.freg_ptr(rs);
self.trace_access(
TraceAccess::Readvf64sReg(rs as u8),
LLVMBuildLoad2(self.builder, raw_ptr, NONAME),
LLVMBuildLoad2(self.builder, LLVMInt32Type(), raw_ptr, NONAME),
);

// read data1
Expand Down Expand Up @@ -7147,7 +7147,7 @@ impl<'a> InstructionTranslator<'a> {
ptr_hi,

Check warning on line 7147 in src/tran.rs

View workflow job for this annotation

GitHub Actions / Format

Diff in /home/runner/work/banshee/banshee/src/tran.rs
format!("f{}\0", rs).as_ptr() as *const _,
),
LLVMBuildLoad2(self.builder, ptr, format!("f{}\0", rs).as_ptr() as *const _),
LLVMBuildLoad2(self.builder, LLVMInt32Type(), ptr, format!("f{}\0", rs).as_ptr() as *const _),
)
}

Expand All @@ -7157,7 +7157,7 @@ impl<'a> InstructionTranslator<'a> {
let raw_ptr = self.freg_ptr(rs);
self.trace_access(
TraceAccess::Readf8Reg(rs as u8),
LLVMBuildLoad2(self.builder, raw_ptr, NONAME),
LLVMBuildLoad2(self.builder, LLVMInt32Type(), raw_ptr, NONAME),
);
let ptr = LLVMBuildBitCast(
self.builder,
Expand Down Expand Up @@ -7201,7 +7201,7 @@ impl<'a> InstructionTranslator<'a> {
let raw_ptr = self.freg_ptr(rs);
self.trace_access(
TraceAccess::ReadF32Reg(rs as u8),
LLVMBuildLoad2(self.builder, raw_ptr, NONAME),
LLVMBuildLoad2(self.builder, LLVMInt32Type(), raw_ptr, NONAME),
);
let ptr = if llvm_float {
LLVMBuildBitCast(
Expand All @@ -7218,7 +7218,7 @@ impl<'a> InstructionTranslator<'a> {
NONAME,

Check warning on line 7218 in src/tran.rs

View workflow job for this annotation

GitHub Actions / Format

Diff in /home/runner/work/banshee/banshee/src/tran.rs
)
};
LLVMBuildLoad2(self.builder, ptr, format!("f{}\0", rs).as_ptr() as *const _)
LLVMBuildLoad2(self.builder, LLVMInt32Type(), ptr, format!("f{}\0", rs).as_ptr() as *const _)
}

/// Emit the code to write a f64 value to a float register.
Expand Down

0 comments on commit e0954f2

Please sign in to comment.