[clang][Interp] Implement div opcode
authorTimm Bäder <tbaeder@redhat.com>
Tue, 27 Sep 2022 16:17:52 +0000 (18:17 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Fri, 14 Oct 2022 10:57:57 +0000 (12:57 +0200)
commitd704ba26b9144829f1c4905c168f6b6278c7a3e6
treecb7635cff3a66c1c7ee8850c8dde9f3675abdf5c
parentc9ad877844a7fd52726ed3f11bb6e7fb90e9358e
[clang][Interp] Implement div opcode

Implement an opcode for division of two integrals.

Differential Revision: https://reviews.llvm.org/D134749
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/Integral.h
clang/lib/AST/Interp/Interp.h
clang/lib/AST/Interp/Opcodes.td
clang/test/AST/Interp/literals.cpp