aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/translate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ptx/src/translate.rs')
-rw-r--r--ptx/src/translate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ptx/src/translate.rs b/ptx/src/translate.rs
index ed752e9..3133fdc 100644
--- a/ptx/src/translate.rs
+++ b/ptx/src/translate.rs
@@ -3025,7 +3025,7 @@ fn emit_function_body_ops(
}
ast::Instruction::Selp(t, a) => {
let result_type = map.get_or_add_scalar(builder, ast::ScalarType::from(*t));
- builder.select(result_type, Some(a.dst), a.src3, a.src2, a.src2)?;
+ builder.select(result_type, Some(a.dst), a.src3, a.src1, a.src2)?;
}
// TODO: implement named barriers
ast::Instruction::Bar(d, _) => {